Bladeren bron

优惠金额和折扣金额

陈少旭 23 uur geleden
bovenliggende
commit
0b83c76e0d
1 gewijzigde bestanden met toevoegingen van 14 en 14 verwijderingen
  1. 14 14
      src/xt_permission.js

+ 14 - 14
src/xt_permission.js Bestand weergeven

@@ -11,20 +11,20 @@ const loginWhiteList = ['/token/verify', '/401', '/404'] // 登录验证白名
11 11
 const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名单
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14
-  // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
14
+  // // 线上注释
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))