From dd6f7eeb3dd28daa7cc9463fd1762adff57ea064 Mon Sep 17 00:00:00 2001 From: ZhaoYang <565837861@qq.com> Date: Wed, 22 Apr 2026 10:57:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chenhai-ui/src/router/index.js | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/chenhai-ui/src/router/index.js b/chenhai-ui/src/router/index.js index e92364a..49bba06 100644 --- a/chenhai-ui/src/router/index.js +++ b/chenhai-ui/src/router/index.js @@ -75,25 +75,22 @@ export const constantRoutes = [ hidden: true }, + { - path: 'index', - component: () => import('@/views/index'), - hidden: true + path: '', + component: Layout, + redirect: 'index', + children: [ + { + path: 'index', + component: () => import('@/views/Home'), + name: 'Index', + meta: { title: '首页', icon: 'dashboard', affix: true } + } + ] }, - // { - // path: '', - // component: Layout, - // redirect: 'index', - // children: [ - // { - // path: 'index', - // component: () => import('@/views/index'), - // name: 'Index', - // meta: { title: '首页', icon: 'dashboard', affix: true } - // } - // ] - // }, + { path: '/lock', component: () => import('@/views/lock'),