Sfoglia il codice sorgente

更新 配置文件/store

wzh 4 anni fa
parent
commit
cce63bb640
2 ha cambiato i file con 4 aggiunte e 15 eliminazioni
  1. 1 0
      package.json
  2. 3 15
      src/store/index.js

+ 1 - 0
package.json

@@ -9,6 +9,7 @@
   "dependencies": {
     "@element-plus/icons": "^0.0.11",
     "axios": "^0.21.1",
+    "countup": "^1.8.2",
     "element-plus": "^1.1.0-beta.24",
     "lodash": "^4.17.21",
     "md5": "^2.3.0",

+ 3 - 15
src/store/index.js

@@ -3,26 +3,14 @@ import { createStore } from "vuex";
 const store = createStore({
   state: {
     isLogin: false,
-    firstTitle: "",
-    secondTitle: "",
-    currentMenuItem: "/index",
-    isLoading: false,
+    currentTab: "运输安全管理中心",
   },
   mutations: {
-    changefirstTitle(state, text) {
-      state.firstTitle = text;
-    },
-    changeTitleSecond(state, text) {
-      state.secondTitle = text;
-    },
     changeLogin(state, b) {
       state.isLogin = b;
     },
-    setCurrentMenuItem(state, index) {
-      state.currentMenuItem = index;
-    },
-    changeLoading(state, b) {
-      state.isLoading = b;
+    changeTab(state, text) {
+      state.currentTabText = text;
     },
   },
   actions: {