2019-07-25 10:32:29 +08:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import app from './modules/app';
|
|
|
|
import settings from './modules/settings';
|
|
|
|
import user from './modules/user';
|
|
|
|
import config from './modules/config';
|
|
|
|
import permission from './modules/permission';
|
|
|
|
import map from './modules/map';
|
2019-07-25 10:58:17 +08:00
|
|
|
import training from './modules/training';
|
2019-07-25 13:24:40 +08:00
|
|
|
import menuOperation from './modules/menuoperation';
|
2019-07-25 10:32:29 +08:00
|
|
|
import getters from './getters';
|
2019-07-02 16:29:52 +08:00
|
|
|
|
2019-07-25 10:32:29 +08:00
|
|
|
Vue.use(Vuex);
|
2019-07-02 16:29:52 +08:00
|
|
|
|
|
|
|
const store = new Vuex.Store({
|
|
|
|
modules: {
|
|
|
|
app,
|
|
|
|
settings,
|
|
|
|
user,
|
2019-07-25 10:32:29 +08:00
|
|
|
permission,
|
|
|
|
config,
|
2019-07-25 10:58:17 +08:00
|
|
|
map,
|
2019-07-25 13:24:40 +08:00
|
|
|
training,
|
|
|
|
menuOperation
|
2019-07-02 16:29:52 +08:00
|
|
|
},
|
|
|
|
getters
|
2019-07-25 10:32:29 +08:00
|
|
|
});
|
2019-07-02 16:29:52 +08:00
|
|
|
|
2019-07-25 10:32:29 +08:00
|
|
|
export default store;
|