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

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