Portal/portal_client/src/store/index.js

26 lines
487 B
JavaScript
Raw Normal View History

2025-03-10 17:41:02 +08:00
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
appSetting: {},
currentModule: {},
allModules: []
},
mutations: {
SET_APP_SETTING(state, appSetting) {
state.appSetting = appSetting
},
SET_CURRENT_MODULE(state, currentModule) {
state.currentModule = currentModule
},
SET_ALL_MODULES(state, allModules) {
state.allModules = allModules
}
},
actions: {},
modules: {}
})