|
@@ -281,7 +281,7 @@ export default {
|
|
this.$message.error("密码长度不少于6位或者密码包含特殊字符、中文");
|
|
this.$message.error("密码长度不少于6位或者密码包含特殊字符、中文");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
let str = this.account.replace(/(^\s*)|(\s*$)/g, "");
|
|
let str = this.account.replace(/(^\s*)|(\s*$)/g, "");
|
|
if (!this.org && !regEmail.test(str)) {
|
|
if (!this.org && !regEmail.test(str)) {
|
|
// this.$message.error(
|
|
// this.$message.error(
|
|
@@ -323,7 +323,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
email = str;
|
|
email = str;
|
|
}
|
|
}
|
|
- if (this.loginType == "default") {
|
|
|
|
|
|
+ if (['default','orgL'].includes(this.loginType)) {
|
|
let params = {
|
|
let params = {
|
|
geetest_challenge: "",
|
|
geetest_challenge: "",
|
|
geetest_validate: "",
|
|
geetest_validate: "",
|
|
@@ -502,7 +502,8 @@ export default {
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
console.log(err);
|
|
console.log(err);
|
|
- this.$message.error("获取组织失败");
|
|
|
|
|
|
+ this.$message.error("获取组织失败,请使用“组织号登陆”");
|
|
|
|
+ this.loginType = 'orgL'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|