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