feat: 重命名路由

This commit is contained in:
digua
2025-12-02 23:24:18 +08:00
parent a6deed78c7
commit 3d7cadc123
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ async function handleClickImport() {
if (!result.success && result.error && result.error !== '未选择文件') {
importError.value = result.error
} else if (result.success && chatStore.currentSessionId) {
router.push({ name: 'chat', params: { id: chatStore.currentSessionId } })
router.push({ name: 'group-chat', params: { id: chatStore.currentSessionId } })
}
}
@@ -62,7 +62,7 @@ async function handleFileDrop({ paths }: { files: File[]; paths: string[] }) {
if (!result.success && result.error) {
importError.value = result.error
} else if (result.success && chatStore.currentSessionId) {
router.push({ name: 'chat', params: { id: chatStore.currentSessionId } })
router.push({ name: 'group-chat', params: { id: chatStore.currentSessionId } })
}
}
+3 -3
View File
@@ -8,9 +8,9 @@ export const router = createRouter({
component: () => import('@/pages/index.vue'),
},
{
path: '/chat/:id',
name: 'chat',
component: () => import('@/pages/chat.vue'),
path: '/group-chat/:id',
name: 'group-chat',
component: () => import('@/pages/group-chat.vue'),
},
{
path: '/tools',