Jelajahi Sumber

更新 默认tab

wzh 4 tahun lalu
induk
melakukan
e41168a349
2 mengubah file dengan 2 tambahan dan 4 penghapusan
  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: "石油焦",