From ed2ca6f406c0efcd77234dd3f0a4fc183d330ca6 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 4 Sep 2024 10:44:03 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E6=83=A0=E5=88=B8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=81=94=E8=B0=83=20sws=202024-09-03?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 23 ++++++++++++++--------- src/views/dashboard/index.vue | 13 ------------- 2 files changed, 14 insertions(+), 22 deletions(-) delete mode 100644 src/views/dashboard/index.vue diff --git a/src/router/index.ts b/src/router/index.ts index 7d195ce2..84d39697 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -16,16 +16,21 @@ export const constantRoutes: RouteRecordRaw[] = [ { path: '/', component: Layout, - redirect: '/dashboard', - children: [ - { - path: 'dashboard', - component: () => import('@/views/dashboard/index.vue'), - name: 'Dashboard', - meta: { title: 'dashboard', icon: 'homepage', affix: true }, - }, - ], + meta: { hidden: true }, }, + // { + // path: '/', + // component: Layout, + // redirect: '/dashboard', + // children: [ + // { + // path: 'dashboard', + // component: () => import('@/views/dashboard/index.vue'), + // name: 'Dashboard', + // meta: { title: 'dashboard', icon: 'homepage', affix: true }, + // }, + // ], + // }, ]; /** * 创建路由 diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index 21b71e69..00000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - -