2022-04-10 01:21:21 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Vuex from 'vuex'
|
2022-11-23 00:21:41 +08:00
|
|
|
import user from './mudules/user'
|
|
|
|
import getters from './getters'
|
2022-04-10 01:21:21 +08:00
|
|
|
|
|
|
|
Vue.use(Vuex) // vue的插件机制
|
|
|
|
|
|
|
|
// Vuex.Store 构造器选项
|
|
|
|
const store = new Vuex.Store({
|
2022-11-23 00:21:41 +08:00
|
|
|
modules: {
|
|
|
|
user
|
2022-04-20 03:08:59 +08:00
|
|
|
},
|
2022-11-23 00:21:41 +08:00
|
|
|
getters
|
2022-04-10 01:21:21 +08:00
|
|
|
})
|
|
|
|
export default store
|