index.js
429 Bytes
import Vue from 'vue';
import Vuex from 'vuex';
import filter from './filter';
import yoho from './yoho';
import product from './product';
import editorial from './editorial';
Vue.use(Vuex);
export function createStore() {
return new Vuex.Store({
modules: {
filter,
yoho,
product,
editorial
},
strict: process.env.NODE_ENV !== 'production'
});
}