Sfoglia il codice sorgente

更新 数字化tab选中状态逻辑

wzh 4 anni fa
parent
commit
b43e065143
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/main.js

+ 3 - 0
src/main.js

@@ -66,6 +66,9 @@ router.beforeEach(async (to, from, next) => {
 });
 router.afterEach((to, from) => {
   let { title } = to.meta;
+  if (to.meta == "数字化赋能中心") {
+    store.commit("changeTab", to.meta);
+  }
   document.title = title;
 });