martial-arts/store/index.js

14 lines
277 B
JavaScript
Raw Normal View History

2022-08-01 09:03:10 +00:00
// 组装模块并导出 store 的地方
import Vue from 'vue'
import Vuex from 'vuex'
import moduleA from '@/store/modules/moduleA'
Vue.use(Vuex);//vue的插件机制
//Vuex.modules 模块选项
const store = new Vuex.Store({
modules: {
2022-08-01 10:18:01 +00:00
moduleA
2022-08-01 09:03:10 +00:00
}
})
export default store