Explorar o código

更新 默认tab

wzh %!s(int64=4) %!d(string=hai) anos
pai
achega
e41168a349
Modificáronse 2 ficheiros con 2 adicións e 4 borrados
  1. 1 3
      src/components/Header.vue
  2. 1 1
      src/store/index.js

+ 1 - 3
src/components/Header.vue

@@ -52,9 +52,7 @@ export default {
         router.replace("/login");
       }
     }
-    onMounted(() => {
-      store.commit("changeTab", "运输安全管理中心");
-    });
+    onMounted(() => {});
     return {
       tabs,
       changeTab,

+ 1 - 1
src/store/index.js

@@ -3,7 +3,7 @@ import { createStore } from "vuex";
 const store = createStore({
   state: {
     isLogin: false,
-    currentTab: "运输安全管理中心",
+    currentTabText: "智能交易中心",
     cargoOwnerInfo: {
       cargoOwnerName: "货主王",
       cargo: "石油焦",