perf: 增加路由重定向到首页
This commit is contained in:
@ -23,6 +23,15 @@ export const router = createRouter({
|
|||||||
requireLogin: false,
|
requireLogin: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/',
|
||||||
|
name: 'Index',
|
||||||
|
redirect: '/chat',
|
||||||
|
meta: {
|
||||||
|
requiresAuth: false,
|
||||||
|
requireLogin: true,
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/chat/:conversationId?',
|
path: '/chat/:conversationId?',
|
||||||
name: 'Home',
|
name: 'Home',
|
||||||
@ -30,10 +39,9 @@ export const router = createRouter({
|
|||||||
meta: {
|
meta: {
|
||||||
requiresAuth: false,
|
requiresAuth: false,
|
||||||
requireLogin: true,
|
requireLogin: true,
|
||||||
id: MENU_GROUP_IDS.WORK_BENCH_ID,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
...appRoutes,
|
...appRoutes,
|
||||||
{
|
{
|
||||||
path: '/:pathMatch(.*)*',
|
path: '/:pathMatch(.*)*',
|
||||||
|
|||||||
Reference in New Issue
Block a user