首次提交
This commit is contained in:
40
store/modules/base.js
Normal file
40
store/modules/base.js
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
Reference in New Issue
Block a user