From 56f88fa6eaceab4b62ef507de19b21e857a4fc4a Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Fri, 21 Mar 2025 10:49:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor(student):=20=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=B1=BB=E5=9E=8B=E9=80=89=E6=8B=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉 userType = 1 的硬编码逻辑 - 恢复使用服务器返回的 userType 值- 删除多余的注释代码 --- pages/student/login/login.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/student/login/login.vue b/pages/student/login/login.vue index 6a7bdbc..4c2341d 100644 --- a/pages/student/login/login.vue +++ b/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': //教练