洛阳学员端
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.
 
 
 
 
 

31 lines
557 B

const school = {
state: {
schoolCoach: {},
schoolClass: {},
BizToken: uni.getStorageSync('BizToken') ? uni.getStorageSync('BizToken') : ''
},
mutations: {
// 更新选择的驾校与教练
upDateSchoolCoach(state, obj) {
state.schoolCoach = obj
},
upDateSchoolClass(state, obj) {
state.schoolClass = obj
},
updateBizToken(state, val) {
uni.setStorageSync('BizToken', val)
state.BizToken = val
console.log('保存到store里了')
console.log(state.BizToken)
},
},
actions: {
}
}
export default school