소스 검색

更新 默认tab

wzh 4 년 전
부모
커밋
e41168a349
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  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: "石油焦",