Browse Source

refactor(student): 恢复用户类型选择功能

- 注释掉 userType = 1 的硬编码逻辑
- 恢复使用服务器返回的 userType 值- 删除多余的注释代码
master
liutong 1 year ago
parent
commit
56f88fa6ea
  1. 3
      pages/student/login/login.vue

3
pages/student/login/login.vue

@ -73,12 +73,11 @@
uni.setStorageSync('token', res.data.token);
let userType = res.data.userType
userType = 1
// userType = 1
uni.setStorageSync('userType', userType);
uni.setStorageSync('tabBerIndex', 0);
// uni.setStorageSync('userType', res.data.userType);
let url_path = ''
switch (String(userType)) {
case '1': //

Loading…
Cancel
Save