WongBin 4 жил өмнө
parent
commit
5128e0d813

+ 1 - 1
report-ui/src/router/index.js

@@ -42,7 +42,7 @@ export const constantRouterMap = [
     name: '首页',
     meta: { title: '首页', icon: 'iconhome2' },
     children: [
-      { path: '', name: 'accessUser', component: () => import('@/views/home/index'), meta: { title: '首页', icon: 'iconhome2', keepAlive: true, isBack: true } },
+      { path: '', name: 'accessUser', component: () => import('@/views/home/index'), meta: { title: '首页', icon: 'iconhome2', keepAlive: true, isBack: true, requireAuth: true } },
     ]
   },
   {