mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-06-05 15:39:56 +08:00
refactor: change router for main-layout
This commit is contained in:
@@ -48,7 +48,7 @@ onMounted(async () => {
|
||||
router.replace('/cookieAssistant')
|
||||
} else {
|
||||
await sleep(1000)
|
||||
router.replace('/configuration')
|
||||
router.replace('/main-layout')
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -181,7 +181,7 @@ const handleEditThisCookieExtensionStoreLinkClick = () => {
|
||||
}
|
||||
|
||||
const handleCancel = () => {
|
||||
router.replace('/configuration')
|
||||
router.replace('/main-layout')
|
||||
}
|
||||
const handleSubmit = async () => {
|
||||
await formRef.value!.validate()
|
||||
@@ -190,7 +190,7 @@ const handleSubmit = async () => {
|
||||
data: formContent.value.collectedCookies
|
||||
})
|
||||
ElMessage.success('Boss直聘 Cookie 保存成功')
|
||||
router.replace('/configuration')
|
||||
router.replace('/main-layout')
|
||||
}
|
||||
|
||||
const handleBossZhipinLoginPageClosed = () => {
|
||||
|
||||
@@ -33,7 +33,7 @@ const handleStopping = () => {
|
||||
ipcRenderer.once('geek-auto-start-chat-with-boss-stopping', handleStopping)
|
||||
|
||||
const handleStopped = () => {
|
||||
router.replace('/configuration/GeekAutoStartChatWithBoss')
|
||||
router.replace('/main-layout/GeekAutoStartChatWithBoss')
|
||||
}
|
||||
ipcRenderer.once('geek-auto-start-chat-with-boss-stopped', handleStopped)
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ const handleStopping = () => {
|
||||
ipcRenderer.once('geek-auto-start-chat-with-boss-stopping', handleStopping)
|
||||
|
||||
const handleStopped = () => {
|
||||
router.replace('/configuration/ReadNoReplyReminder')
|
||||
router.replace('/main-layout/ReadNoReplyReminder')
|
||||
}
|
||||
ipcRenderer.once('geek-auto-start-chat-with-boss-stopped', handleStopped)
|
||||
|
||||
|
||||
@@ -17,55 +17,55 @@ const routes: Array<RouteRecordRaw> = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/configuration',
|
||||
component: () => import('@renderer/page/Configuration/index.vue'),
|
||||
redirect: '/configuration/GeekAutoStartChatWithBoss',
|
||||
path: '/main-layout',
|
||||
component: () => import('@renderer/page/MainLayout/index.vue'),
|
||||
redirect: '/main-layout/GeekAutoStartChatWithBoss',
|
||||
children: [
|
||||
{
|
||||
path: 'GeekAutoStartChatWithBoss',
|
||||
component: () => import('@renderer/page/Configuration/GeekAutoStartChatWithBoss.vue'),
|
||||
component: () => import('@renderer/page/MainLayout/GeekAutoStartChatWithBoss.vue'),
|
||||
meta: {
|
||||
title: 'BOSS炸弹'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'ReadNoReplyReminder',
|
||||
component: () => import('@renderer/page/Configuration/ReadNoReplyReminder.vue'),
|
||||
component: () => import('@renderer/page/MainLayout/ReadNoReplyReminder.vue'),
|
||||
meta: {
|
||||
title: '已读不回提醒器'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'StartChatRecord',
|
||||
component: () => import('@renderer/page/Configuration/StartChatRecord.vue'),
|
||||
component: () => import('@renderer/page/MainLayout/StartChatRecord.vue'),
|
||||
meta: {
|
||||
title: '开聊记录'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'MarkAsNotSuitRecord',
|
||||
component: () => import('@renderer/page/Configuration/MarkAsNotSuitRecord.vue'),
|
||||
component: () => import('@renderer/page/MainLayout/MarkAsNotSuitRecord.vue'),
|
||||
meta: {
|
||||
title: '标记不合适记录'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'JobLibrary',
|
||||
component: () => import('@renderer/page/Configuration/JobLibrary.vue'),
|
||||
component: () => import('@renderer/page/MainLayout/JobLibrary.vue'),
|
||||
meta: {
|
||||
title: '职位库'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'BossLibrary',
|
||||
component: () => import('@renderer/page/Configuration/BossLibrary.vue'),
|
||||
component: () => import('@renderer/page/MainLayout/BossLibrary.vue'),
|
||||
meta: {
|
||||
title: 'Boss库'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'CompanyLibrary',
|
||||
component: () => import('@renderer/page/Configuration/CompanyLibrary.vue'),
|
||||
component: () => import('@renderer/page/MainLayout/CompanyLibrary.vue'),
|
||||
meta: {
|
||||
title: '公司库'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user