瀏覽代碼

10.24 0.2

liuqiao 2 年之前
父節點
當前提交
14ae7256be
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 1 1
      src/permission.js
  2. 4 0
      src/router/index.js

+ 1 - 1
src/permission.js

@@ -8,7 +8,7 @@ import { Caegw_LogUrl } from '@/settings' // 引入settings.js
 
 
 NProgress.configure({ showSpinner: false }) // NProgress配置
 NProgress.configure({ showSpinner: false }) // NProgress配置
 
 
-const whiteList = ['/fail404', '/home','/sso','/login/index','/register/index', '/forget/index', '/protocol/index','/indexLayout/index','/index']// 免登录的'白名单
+const whiteList = ['/fail404', '/home','/sso','/login/index','/register/index', '/forget/index', '/protocol/index','/indexLayout/index','/index',]// 免登录的'白名单
 // 前置路由守卫
 // 前置路由守卫
 router.beforeEach(async (to, from, next) => {
 router.beforeEach(async (to, from, next) => {
   NProgress.start() // 开启进度条
   NProgress.start() // 开启进度条

+ 4 - 0
src/router/index.js

@@ -79,6 +79,10 @@ export const constantRoutes = [
       }]
       }]
     
     
     },
     },
+   
+    
+  
+  
   //HCFD
   //HCFD
   // {
   // {
   //   path: 'HCFDLab/index',
   //   path: 'HCFDLab/index',