From 3d7cadc1235c4705f8ce1b6b3779db88c9fdd40e Mon Sep 17 00:00:00 2001 From: digua Date: Tue, 2 Dec 2025 23:24:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E5=91=BD=E5=90=8D=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/{chat.vue => group-chat.vue} | 0 src/pages/index.vue | 4 ++-- src/routes/index.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/pages/{chat.vue => group-chat.vue} (100%) diff --git a/src/pages/chat.vue b/src/pages/group-chat.vue similarity index 100% rename from src/pages/chat.vue rename to src/pages/group-chat.vue diff --git a/src/pages/index.vue b/src/pages/index.vue index ec46146..69e0e05 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -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 } }) } } diff --git a/src/routes/index.ts b/src/routes/index.ts index aec940c..e7558ea 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -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',