zhangjie 1 жил өмнө
parent
commit
2ae419a1ee

+ 1 - 1
src/modules/login/views/Login.vue

@@ -229,7 +229,7 @@ export default {
       this.$ls.set("schoolInfo", data);
     },
     switchLoginType() {
-      if (!this.phoneLogin) return;
+      if (!this.schoolInfo.phoneLogin) return;
       this.loginType = this.loginType === "ACCOUNT" ? "PHONE" : "ACCOUNT";
     },
     async submit(name) {