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,