From d4736907b1b85bb0395477c0b5b6cd0e16cea768 Mon Sep 17 00:00:00 2001 From: liutao <790864623@qq.com> Date: Fri, 10 Jul 2026 11:23:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5inner=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=85=8D=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.ts | 2 ++ src/router/modules/remaining.ts | 40 ++++++++++++++++----------------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/permission.ts b/src/permission.ts index be219bed..0ebd780a 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -84,6 +84,8 @@ const whiteList = [ ] const homePublicAccessWhiteList = [ + '/', + '/index', '/iot/report/dashboardPage/Dashboard8', '/iot/report/dashboardPage/Dashboard1', '/iot/report/dashboardPage/Dashboard3', diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 30b67843..797f6e43 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -50,26 +50,26 @@ const remainingRouter: AppRouteRecordRaw[] = [ noTagsView: true } }, - // { - // path: '/', - // component: Layout, - // redirect: '/index', - // name: 'Home', - // meta: {}, - // children: [ - // { - // path: 'index', - // component: () => import('@/views/Home/Index.vue'), - // name: 'Index', - // meta: { - // title: t('router.home'), - // icon: 'ep:home-filled', - // noCache: false, - // affix: true - // } - // } - // ] - // }, + { + path: '/', + component: Layout, + redirect: '/index', + name: 'Root', + meta: {}, + children: [ + { + path: 'index', + component: () => import('@/views/Home/Index.vue'), + name: 'Index', + meta: { + title: t('router.home'), + icon: 'ep:home-filled', + noCache: false, + affix: true + } + } + ] + }, { path: '/user', component: Layout,