mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-07-12 16:11:27 +08:00
✨ Feature: manual page now open in a new window
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user