FlowPacs/yudao-ui-app/store/index.js

18 lines
316 B
JavaScript
Raw Normal View History

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