11wqe1 6 일 전
부모
커밋
c1362b9916
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/views/login/loginPage.vue

+ 2 - 4
src/views/login/loginPage.vue

@@ -581,13 +581,11 @@ export default {
 				// 这一步是为了判断登录时,账户是否在组织下有账户问题(但现在获取账户时那部分已经被隐藏,多账号返回数字,这行代码没用了)
 				// if (this.OrgOptions.find((i) => i.Uorg == this.org)) {
 				// console.log('555',this.OrgOptions.find((i) => i.Uorg == this.org).id);
-				if (this.org && this.OrgOptions.find((i) => i.Uorg == this.org) && mergedList.includes(this.OrgOptions.find((i) => i.Uorg == this.org).id)) {
+				if (regEmail.test(str) && this.OrgOptions.find((i) => mergedList.includes(i.id)) && this.OrgOptions.find((i) => mergedList.includes(i.id)).id) {
 					this.loading = false;
 					// 账号不可登录,请使用您的专属网址
 					return this.$message.error(this.lang.Accountcannot);
-				}
-				
-				if (!this.org && this.OrgOptions.find((i) => mergedList.includes(i.id)) && this.OrgOptions.find((i) => mergedList.includes(i.id)).id) {
+				}else if (this.org && this.OrgOptions.find((i) => i.Uorg == this.org) && mergedList.includes(this.OrgOptions.find((i) => i.Uorg == this.org).id)) {
 					this.loading = false;
 					// 账号不可登录,请使用您的专属网址
 					return this.$message.error(this.lang.Accountcannot);