From 5f45eb7d0cf77f8b28dbf3d49972401c59214711 Mon Sep 17 00:00:00 2001 From: mizhexiaoxiao <1157861072@qq.com> Date: Wed, 19 Jun 2024 23:28:08 +0800 Subject: [PATCH] Update --- web/src/router/routes/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/router/routes/index.js b/web/src/router/routes/index.js index 8680283..929e4ea 100644 --- a/web/src/router/routes/index.js +++ b/web/src/router/routes/index.js @@ -7,15 +7,15 @@ export const basicRoutes = [ { path: '/', redirect: '/workbench', // 默认跳转到首页 + meta: { order: 0 }, }, { name: t('views.workbench.label_workbench'), - path: '/', + path: '/workbench', component: Layout, - redirect: '/workbench', // 默认跳转到首页 children: [ { - path: 'workbench', + path: '', component: () => import('@/views/workbench/index.vue'), name: t('views.workbench.label_workbench'), meta: { @@ -25,16 +25,16 @@ export const basicRoutes = [ }, }, ], - meta: { order: 0 }, + meta: { order: 1 }, }, { name: t('views.profile.label_profile'), - path: '/', + path: '/profile', component: Layout, isHidden: true, children: [ { - path: 'profile', + path: '', component: () => import('@/views/profile/index.vue'), name: t('views.profile.label_profile'), meta: {