From c3a9bc7a0f45bded37dc770e8ffd7083ead131f4 Mon Sep 17 00:00:00 2001 From: louis <869322496@qq.com> Date: Fri, 1 Mar 2024 16:54:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E9=87=8D=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes/modules/dashboard.ts | 27 +++++++++++++------------- src/router/routes/modules/index.ts | 2 +- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/router/routes/modules/dashboard.ts b/src/router/routes/modules/dashboard.ts index d5e1696..dc17ae8 100644 --- a/src/router/routes/modules/dashboard.ts +++ b/src/router/routes/modules/dashboard.ts @@ -6,25 +6,24 @@ const moduleName = 'dashboard'; const routes: Array = [ { - path: '/dashboard', + path: '/dashboard/welcome', name: moduleName, - redirect: '/dashboard/welcome', - component: RouterView, + component: () => import('@/views/dashboard/welcome/index.vue'), meta: { title: t('routes.dashboard.dashboard'), icon: 'ant-design:dashboard-outlined', }, - children: [ - { - path: 'welcome', - name: `${moduleName}-welcome`, - meta: { - title: t('routes.dashboard.workbench'), - icon: 'ant-design:home-filled', - }, - component: () => import('@/views/dashboard/welcome/index.vue'), - }, - ], + // children: [ + // { + // path: 'welcome', + // name: `${moduleName}-welcome`, + // meta: { + // title: t('routes.dashboard.workbench'), + // icon: 'ant-design:home-filled', + // }, + // component: () => import('@/views/dashboard/welcome/index.vue'), + // }, + // ], }, ]; diff --git a/src/router/routes/modules/index.ts b/src/router/routes/modules/index.ts index b6d9bee..9f1aac5 100644 --- a/src/router/routes/modules/index.ts +++ b/src/router/routes/modules/index.ts @@ -2,4 +2,4 @@ import dashboard from './dashboard'; // import demos from './demos'; import account from './account'; -export default [/* ...demos, */ /* ...dashboard, */ ...account]; +export default [/* ...demos, */ ...dashboard, ...account];