Browse Source

登录验证配置

庄逸洲 5 years ago
parent
commit
f33c965b77
2 changed files with 10 additions and 10 deletions
  1. 2 2
      config/index.js
  2. 8 8
      src/xt_permission.js

+ 2 - 2
config/index.js View File

@@ -19,8 +19,8 @@ module.exports = {
19 19
 
20 20
     // host: 'test1.sgjyun.com',
21 21
     // host: 'jk.kuyicloud.com',
22
-    //host: 'test1.sgjyun.com',
23
-    host:'localhost',
22
+    host: 'test1.sgjyun.com',
23
+    // host:'localhost',
24 24
     port: 8090, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
25 25
     autoOpenBrowser: true,
26 26
     errorOverlay: true,

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