mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-17 03:50:42 +08:00
feat: 重命名路由
This commit is contained in:
+2
-2
@@ -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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user