2017-08-30 17:42:06 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Vuex from 'vuex'
|
2019-04-19 20:41:52 +08:00
|
|
|
import getters from './getters'
|
2017-08-30 17:42:06 +08:00
|
|
|
import app from './modules/app'
|
2019-04-19 20:41:52 +08:00
|
|
|
import settings from './modules/settings'
|
2017-08-30 17:42:06 +08:00
|
|
|
import user from './modules/user'
|
2017-06-26 13:38:24 +08:00
|
|
|
|
2017-08-30 17:42:06 +08:00
|
|
|
Vue.use(Vuex)
|
2017-06-26 13:38:24 +08:00
|
|
|
|
|
|
|
const store = new Vuex.Store({
|
|
|
|
modules: {
|
|
|
|
app,
|
2019-04-19 20:41:52 +08:00
|
|
|
settings,
|
2017-10-18 15:05:30 +08:00
|
|
|
user
|
2017-06-26 13:38:24 +08:00
|
|
|
},
|
|
|
|
getters
|
2017-08-30 17:42:06 +08:00
|
|
|
})
|
2017-06-26 13:38:24 +08:00
|
|
|
|
|
|
|
export default store
|