Portal/portal_client/src/store/index.js

26 lines
487 B
JavaScript

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: {}
})