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.
30 lines
535 B
30 lines
535 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
|
|
},
|
|
|
|
},
|
|
actions: {
|
|
|
|
}
|
|
}
|
|
|
|
export default school
|