he2802 4 년 전
부모
커밋
1e808aa7d4
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/layout/permission.js

+ 3 - 3
src/layout/permission.js

@@ -65,8 +65,8 @@ router.beforeEach((to, from, next) => {
             // 加载进度条end
         } else {
             let TenantId = 0
-            if(router.history.pending){
-                TenantId = router.history.pending.query.TenantId
+            if(router.history.current){
+                TenantId = router.history.current.query.TenantId
             }
             localStorage.clear()
             store.state.tabberLists = []
@@ -85,4 +85,4 @@ router.beforeEach((to, from, next) => {
 })
 router.afterEach((to, from) => {
     NProgress.done();
-})
+})