浏览代码

修复BUG

Tang 2 年之前
父节点
当前提交
18788017d8
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/router/index.js

+ 3 - 3
src/router/index.js

@@ -643,9 +643,9 @@ Router.prototype.push = function push(location) {
 }
 
 router.beforeEach(async (to, from, next) => {
-  // if (!store.state.TENANT_NANE) {
-  //   await store.dispatch('findTenantId')
-  // }
+  if (!store.state.TENANT_NANE) {
+    await store.dispatch('findTenantId')
+  }
 
   if (!store.state.footer.length) {
     store.dispatch("getCommonBaseHomeList");