From a9e928a2612365ca8e6373f52c24819d56e04cf7 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Fri, 29 Aug 2025 10:11:24 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=A2=9E=E5=8A=A0=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91=E5=88=B0=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index a057b99..0675e93 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -23,6 +23,15 @@ export const router = createRouter({ requireLogin: false, }, }, + { + path: '/', + name: 'Index', + redirect: '/chat', + meta: { + requiresAuth: false, + requireLogin: true, + } + }, { path: '/chat/:conversationId?', name: 'Home', @@ -30,10 +39,9 @@ export const router = createRouter({ meta: { requiresAuth: false, requireLogin: true, - id: MENU_GROUP_IDS.WORK_BENCH_ID, }, }, - + ...appRoutes, { path: '/:pathMatch(.*)*',