浏览代码

更新 默认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");
         router.replace("/login");
       }
       }
     }
     }
-    onMounted(() => {
-      store.commit("changeTab", "运输安全管理中心");
-    });
+    onMounted(() => {});
     return {
     return {
       tabs,
       tabs,
       changeTab,
       changeTab,

+ 1 - 1
src/store/index.js

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