he2802 4 năm trước cách đây
mục cha
commit
1e808aa7d4
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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();
-})
+})