Tang 2 anni fa
parent
commit
18788017d8
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  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");