jinjianback1.1/src/store/index.js

18 lines
262 B
JavaScript
Raw Normal View History

2017-08-30 17:42:06 +08:00
import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import getters from './getters'
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,
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