lsc 2 jaren geleden
bovenliggende
commit
1fe0bfd107
6 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 0 0
      dist/index.html
  2. 1 1
      dist/report.html
  3. 0 0
      dist/static/js/app.0af319d7.js
  4. 0 0
      dist/static/js/app.0e38277e.js
  5. 1 1
      src/permission.js
  6. 1 1
      src/store/modules/user.js

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 1 - 1
dist/report.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.0af319d7.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.0e38277e.js


+ 1 - 1
src/permission.js

@@ -34,7 +34,7 @@ router.beforeEach(async(to, from, next) => {
       } else {
         try {
           // 获取用户信息
-          // store.dispatch('user/getInfo')
+          store.dispatch('user/getInfo')
           // // 根据角色生成可访问的路线图
           next({ ...to, replace: true })
         } catch (error) {

+ 1 - 1
src/store/modules/user.js

@@ -71,7 +71,7 @@ const actions = {
           console.log(response)
           var _user = response[0][0]
           setToken(_user.userid)
-          dispatch('getInfo')
+          // dispatch('getInfo')
           resolve(_user.userid)
         })
         .catch(error => {

Some files were not shown because too many files changed in this diff