index.js
411 Bytes
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
import getters from "./getters";
import actions from "./actions";
import mutations from "./mutaition";
import users from "./modules/login";
import menus from "./modules/menus"
import state from "./state";
// 导出 store 对象
export default new Vuex.Store({
getters,
actions,
mutations,
state,
modules: {
users,
menus
}
});