You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import {CART_NUM} from '@/config/cache';
|
|
import Cache from '@/utils/cache';
|
|
export default {
|
|
namespaced: true,
|
|
state: {
|
|
cartNum: Cache.get(CART_NUM) || 0
|
|
},
|
|
getters: {},
|
|
mutations: {
|
|
setCartNum(state, data) {
|
|
Cache.set(CART_NUM, data);
|
|
state.cartNum = data;
|
|
}
|
|
}
|
|
}
|
|
|