perf: 增加路由重定向到首页

This commit is contained in:
rd
2025-08-29 10:11:24 +08:00
parent 5fcc91b3dd
commit a9e928a261

View File

@ -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(.*)*',