|
@@ -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() // 开启进度条
|