黄琪勇 1 vuosi sitten
vanhempi
commit
c17d8779af
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/store/modules/user.ts

+ 1 - 1
src/store/modules/user.ts

@@ -47,7 +47,7 @@ const useStore = defineStore("user", {
             })
          }
          // GYM 和 GYT 区分 code验证错误码的区分
-         userType !== "GYM" || setCODE401(5000)
+         userType === "GYM" || setCODE401(5000)
          // GYM 和 GYT 区分 获取用户信息的接口区分
          const userInfoRes = await httpAjaxLoading(userType === "GYM" ? queryUserInfo_gym : getUserInfo_gyt)
          if (userInfoRes.code !== 200) {