瀏覽代碼

fix 身份证号登录

Michael Wang 5 年之前
父節點
當前提交
5f58405a87
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/features/Login/Login.vue

+ 4 - 1
src/features/Login/Login.vue

@@ -259,7 +259,10 @@ export default {
     await this.checkElectronConfig();
     await this.checkVCam();
 
-    if (this.allowLoginType === "IDENTITY_NUMBER") {
+    if (
+      this.allowLoginType.length === 1 &&
+      this.allowLoginType[0] === "IDENTITY_NUMBER"
+    ) {
       this.loginType = "STUDENT_IDENTITY_NUMBER";
     }
   },