1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import Vue from 'vue' import Vuex from 'vuex' import * as getters from './getter' import state from './state' import mutations from './mutations' Vue.use(Vuex) console.log({ getters, state, mutations }) export default new Vuex.Store({ getters, state, mutations })