Files
LSM_OIL_SITE/store/modules/base.js
xk_guohonglei 1f8b3e6e55 首次提交
2020-08-18 15:09:31 +08:00

41 lines
771 B
JavaScript

const base = {
state: {
uploadMaxSize: 1024,
// 上传图片的大小限制 单位kb
baseAdd: {
positionStr: '',
address: ''
},
activeFooter: 0,
tokenActive: false,
openid: '',
unionid: '',
carNo: ''
},
mutations: {
SET_BASEADD: (state, baseAdd) => {
state.baseAdd = baseAdd
},
SET_ACTIVE: (state, activeFooter) => {
state.activeFooter = activeFooter
},
SET_TOKENACTIVE: (state, tokenActive) => {
state.tokenActive = tokenActive
},
SET_OPEN: (state, openid) => {
state.openid = openid
},
SET_CARNO: (state, carNo) => {
state.carNo = carNo
},
SET_UNIONID: (state, unionid) => {
state.unionid = unionid
}
}
}
export default base