refactor: change router for main-layout

This commit is contained in:
geekgeekrun
2025-04-06 00:44:19 +08:00
parent 7ccf4303d3
commit 5b78dc5d63
13 changed files with 15 additions and 15 deletions
@@ -48,7 +48,7 @@ onMounted(async () => {
router.replace('/cookieAssistant') router.replace('/cookieAssistant')
} else { } else {
await sleep(1000) await sleep(1000)
router.replace('/configuration') router.replace('/main-layout')
} }
}) })
}) })
@@ -181,7 +181,7 @@ const handleEditThisCookieExtensionStoreLinkClick = () => {
} }
const handleCancel = () => { const handleCancel = () => {
router.replace('/configuration') router.replace('/main-layout')
} }
const handleSubmit = async () => { const handleSubmit = async () => {
await formRef.value!.validate() await formRef.value!.validate()
@@ -190,7 +190,7 @@ const handleSubmit = async () => {
data: formContent.value.collectedCookies data: formContent.value.collectedCookies
}) })
ElMessage.success('Boss直聘 Cookie 保存成功') ElMessage.success('Boss直聘 Cookie 保存成功')
router.replace('/configuration') router.replace('/main-layout')
} }
const handleBossZhipinLoginPageClosed = () => { const handleBossZhipinLoginPageClosed = () => {
@@ -33,7 +33,7 @@ const handleStopping = () => {
ipcRenderer.once('geek-auto-start-chat-with-boss-stopping', handleStopping) ipcRenderer.once('geek-auto-start-chat-with-boss-stopping', handleStopping)
const handleStopped = () => { const handleStopped = () => {
router.replace('/configuration/GeekAutoStartChatWithBoss') router.replace('/main-layout/GeekAutoStartChatWithBoss')
} }
ipcRenderer.once('geek-auto-start-chat-with-boss-stopped', handleStopped) 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) ipcRenderer.once('geek-auto-start-chat-with-boss-stopping', handleStopping)
const handleStopped = () => { const handleStopped = () => {
router.replace('/configuration/ReadNoReplyReminder') router.replace('/main-layout/ReadNoReplyReminder')
} }
ipcRenderer.once('geek-auto-start-chat-with-boss-stopped', handleStopped) ipcRenderer.once('geek-auto-start-chat-with-boss-stopped', handleStopped)
+10 -10
View File
@@ -17,55 +17,55 @@ const routes: Array<RouteRecordRaw> = [
} }
}, },
{ {
path: '/configuration', path: '/main-layout',
component: () => import('@renderer/page/Configuration/index.vue'), component: () => import('@renderer/page/MainLayout/index.vue'),
redirect: '/configuration/GeekAutoStartChatWithBoss', redirect: '/main-layout/GeekAutoStartChatWithBoss',
children: [ children: [
{ {
path: 'GeekAutoStartChatWithBoss', path: 'GeekAutoStartChatWithBoss',
component: () => import('@renderer/page/Configuration/GeekAutoStartChatWithBoss.vue'), component: () => import('@renderer/page/MainLayout/GeekAutoStartChatWithBoss.vue'),
meta: { meta: {
title: 'BOSS炸弹' title: 'BOSS炸弹'
} }
}, },
{ {
path: 'ReadNoReplyReminder', path: 'ReadNoReplyReminder',
component: () => import('@renderer/page/Configuration/ReadNoReplyReminder.vue'), component: () => import('@renderer/page/MainLayout/ReadNoReplyReminder.vue'),
meta: { meta: {
title: '已读不回提醒器' title: '已读不回提醒器'
} }
}, },
{ {
path: 'StartChatRecord', path: 'StartChatRecord',
component: () => import('@renderer/page/Configuration/StartChatRecord.vue'), component: () => import('@renderer/page/MainLayout/StartChatRecord.vue'),
meta: { meta: {
title: '开聊记录' title: '开聊记录'
} }
}, },
{ {
path: 'MarkAsNotSuitRecord', path: 'MarkAsNotSuitRecord',
component: () => import('@renderer/page/Configuration/MarkAsNotSuitRecord.vue'), component: () => import('@renderer/page/MainLayout/MarkAsNotSuitRecord.vue'),
meta: { meta: {
title: '标记不合适记录' title: '标记不合适记录'
} }
}, },
{ {
path: 'JobLibrary', path: 'JobLibrary',
component: () => import('@renderer/page/Configuration/JobLibrary.vue'), component: () => import('@renderer/page/MainLayout/JobLibrary.vue'),
meta: { meta: {
title: '职位库' title: '职位库'
} }
}, },
{ {
path: 'BossLibrary', path: 'BossLibrary',
component: () => import('@renderer/page/Configuration/BossLibrary.vue'), component: () => import('@renderer/page/MainLayout/BossLibrary.vue'),
meta: { meta: {
title: 'Boss库' title: 'Boss库'
} }
}, },
{ {
path: 'CompanyLibrary', path: 'CompanyLibrary',
component: () => import('@renderer/page/Configuration/CompanyLibrary.vue'), component: () => import('@renderer/page/MainLayout/CompanyLibrary.vue'),
meta: { meta: {
title: '公司库' title: '公司库'
} }