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