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

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
  1. const school = {
  2. state: {
  3. schoolCoach: {},
  4. schoolClass: {},
  5. BizToken: uni.getStorageSync('BizToken') ? uni.getStorageSync('BizToken') : ''
  6. },
  7. mutations: {
  8. // 更新选择的驾校与教练
  9. upDateSchoolCoach(state, obj) {
  10. state.schoolCoach = obj
  11. },
  12. upDateSchoolClass(state, obj) {
  13. state.schoolClass = obj
  14. },
  15. updateBizToken(state, val) {
  16. uni.setStorageSync('BizToken', val)
  17. state.BizToken = val
  18. console.log('保存到store里了')
  19. console.log(state.BizToken)
  20. },
  21. },
  22. actions: {
  23. }
  24. }
  25. export default school