zhangjie 1 tahun lalu
induk
melakukan
2ae419a1ee
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/modules/login/views/Login.vue

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

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