2021-03-03 15:06:52 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Vuex from 'vuex'
|
|
|
|
import getters from './getters'
|
|
|
|
import app from './modules/app'
|
|
|
|
import settings from './modules/settings'
|
|
|
|
import user from './modules/user'
|
|
|
|
import permission from './modules/permission'
|
|
|
|
import dataset from './modules/dataset'
|
2021-03-03 18:35:51 +08:00
|
|
|
import chart from './modules/chart'
|
2021-03-04 14:58:52 +08:00
|
|
|
import request from './modules/request'
|
2021-03-03 15:06:52 +08:00
|
|
|
Vue.use(Vuex)
|
|
|
|
|
|
|
|
const store = new Vuex.Store({
|
|
|
|
modules: {
|
|
|
|
app,
|
|
|
|
settings,
|
|
|
|
user,
|
|
|
|
permission,
|
2021-03-03 18:35:51 +08:00
|
|
|
dataset,
|
2021-03-04 14:58:52 +08:00
|
|
|
chart,
|
|
|
|
request
|
2021-03-03 15:06:52 +08:00
|
|
|
},
|
|
|
|
getters
|
|
|
|
})
|
|
|
|
|
|
|
|
export default store
|