luobang hai 1 ano
pai
achega
d0fd78b0d9
Modificáronse 2 ficheiros con 5 adicións e 5 borrados
  1. 2 2
      build/utils.js
  2. 3 3
      src/config/routerBefore.js

+ 2 - 2
build/utils.js

@@ -16,8 +16,8 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow','ADMINISTRATORS']
 
-let devModules = ['all']
-// let devModules = ['index', 'statisticalReport']
+// let devModules = ['all']
+let devModules = ['index', 'statisticalReport']
 // let devModules = ['all']
 
 // let devModules = ['index', 'ADMINISTRATORS']

+ 3 - 3
src/config/routerBefore.js

@@ -101,7 +101,7 @@ const breadcrumbFn = function(to, menu) {
 const routerBefore = function(router, constantRouterMap) {
   let flag = false
   router.beforeEach((to, from, next) => {
-    localStorage.setItem('fromRoute', JSON.stringify(from))
+    // localStorage.setItem('fromRoute', JSON.stringify(from))
     if (document.domain.indexOf('steerinfo.com') > -1) {
       document.domain = 'steerinfo.com'
     }
@@ -233,7 +233,7 @@ function DoneCookie(to, from, next, accessToken, flag) {
             }
           }
         } else {
-          /** 
+          /**
           Message('登录已过期,请重新登录')
           setCookie('accessToken', '', -1, '/')
           setCookie('refreshToken', '', -1, '/')
@@ -242,7 +242,7 @@ function DoneCookie(to, from, next, accessToken, flag) {
           setCookie('ticket', '', -1, '/')
           setTimeout(() => {
             window.top.location.href = store.getters.ctx
-          }, 500)*/
+          }, 500) */
         }
       })
       .catch(err => {