XMLWAN 3 years ago
parent
commit
1d21b8c37e
2 changed files with 10 additions and 10 deletions
  1. 2 2
      config/dev.env.js
  2. 8 8
      src/xt_permission.js

+ 2 - 2
config/dev.env.js View File

@@ -1,10 +1,10 @@
1 1
 module.exports = {
2 2
   NODE_ENV: '"development"',
3 3
   ENV_CONFIG: '"dev"',
4
-  BASE_API:'"http://api.test1.sgjyun.com"',//'"http://localhost:9534"'
4
+  // BASE_API:'"http://api.test1.sgjyun.com"',//'"http://localhost:9534"'
5 5
   //BASE_API: '"http://localhost:9534"'
6 6
   // BASE_API:'"http://api.scrm.kuyicloud.com"',//'"http://localhost:9534"'
7
-  // BASE_API:'"http://localhost:9536"',
7
+  BASE_API:'"http://localhost:9535"',
8 8
 
9 9
   //  SSO_HOST: '"http://testsso.sgjyun.com"',
10 10
   //  SRCM_HOST: '"http://test1.sgjyun.com"',

+ 8 - 8
src/xt_permission.js View File

@@ -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()