store.js
897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
});