Feature: manual page now open in a new window

This commit is contained in:
萌萌哒赫萝
2023-09-12 00:31:41 -07:00
parent d776600df9
commit b197b32935
6 changed files with 52 additions and 7 deletions

View File

@@ -358,6 +358,10 @@ const handleGetPicPeds = () => {
const handleSelect = (index: string) => {
defaultActive.value = index
if (index === routerConfig.DocumentPage) {
ipcRenderer.send('openManualWindow')
return
}
const type = index.match(routerConfig.UPLOADER_CONFIG_PAGE)
if (type === null) {
$router.push({

View File

@@ -79,11 +79,6 @@ export default createRouter({
component: () => import(/* webpackChunkName: "Plugin" */ '@/pages/Plugin.vue'),
name: config.PLUGIN_PAGE
},
{
path: 'documents',
component: () => import(/* webpackChunkName: "DocumentPage" */ '@/pages/DocumentPage.vue'),
name: config.DocumentPage
},
{
path: 'shortKey',
component: () => import(/* webpackChunkName: "ShortkeyPage" */ '@/pages/ShortKey.vue'),
@@ -96,6 +91,11 @@ export default createRouter({
}
]
},
{
path: '/documents',
component: () => import(/* webpackChunkName: "DocumentPage" */ '@/pages/DocumentPage.vue'),
name: config.DocumentPage
},
{
path: '/toolbox-page',
name: config.TOOLBOX_CONFIG_PAGE,