学员端小程序
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.
 
 
 

32 lines
605 B

// import addApi from '@/api/add.js'; // 引入
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