|
@@ -10,14 +10,14 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
|
10
|
10
|
|
11
|
11
|
router.beforeEach((to, from, next) => {
|
12
|
12
|
// 线上注释
|
13
|
|
- if (store.getters.permission_routers === undefined) {
|
14
|
|
- store.dispatch('xt_GenerateRoutes', []).then(() => {
|
15
|
|
- next()
|
16
|
|
- })
|
17
|
|
- } else {
|
18
|
|
- next()
|
19
|
|
- }
|
20
|
|
- return
|
|
13
|
+ // if (store.getters.permission_routers === undefined) {
|
|
14
|
+ // store.dispatch('xt_GenerateRoutes', []).then(() => {
|
|
15
|
+ // next()
|
|
16
|
+ // })
|
|
17
|
+ // } else {
|
|
18
|
+ // next()
|
|
19
|
+ // }
|
|
20
|
+ // return
|
21
|
21
|
// 线上注释
|
22
|
22
|
|
23
|
23
|
NProgress.start()
|