import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const state = {
abc:'abc'
};
const mutations = {
};
const actions = {
abc() {
console.log('abcdeee');
}
};
const getters = {
};
import reserve from './reserve'
export default new Vuex.Store({
modules: {
reserve
},
state,
mutations,
actions,
getters,
});
Vuex模板
最新推荐文章于 2024-07-23 15:46:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)