store.js 897 Bytes
import Vue from 'vue';
import Vuex from 'vuex';
//import middlewares from './middlewares';
import weiPageData from './modules/weiPageData';
import cartData from './modules/cartData';
import couponCenterData  from './modules/couponCenterData';
import orderData  from './modules/orderData';
import personCenterData  from './modules/personCenterData';
import addressData  from './modules/addressData';
import goodsData  from './modules/goodsData';


const debug = process.env.NODE_ENV !== 'production';

Vue.use(Vuex);
Vue.config.debug = debug;
Vue.config.warnExpressionErrors = false;


const mutations = {
    CHANGEMSG(state, cname) {
        state.msg = cname;
    }
};

export default new Vuex.Store({
    modules: {
        weiPageData,
        cartData,
        couponCenterData,
        orderData,
        personCenterData,
        addressData,
        goodsData
    },
    strict: debug
});