|
|
@@ -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: {
|