Explorar o código

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

wzh %!s(int64=4) %!d(string=hai) anos
pai
achega
b43e065143
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 });