邮箱校验规则从后端获取
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
05c6e9727f
commit
390df569c9
|
@ -290,6 +290,12 @@ export default {
|
|||
handleEmailChange() {
|
||||
var reg =
|
||||
/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/
|
||||
if (localStorage.getItem('CompanyInfo')) {
|
||||
let CompanyInfo = JSON.parse(localStorage.getItem('CompanyInfo'));
|
||||
if (CompanyInfo.EmailRegexStr) {
|
||||
reg = CompanyInfo.EmailRegexStr
|
||||
}
|
||||
}
|
||||
if (this.userForm.EMail && reg.test(this.userForm.EMail)) {
|
||||
this.sendDisabled = false
|
||||
} else {
|
||||
|
|
|
@ -438,6 +438,12 @@ export default {
|
|||
handleEmailChange() {
|
||||
var reg =
|
||||
/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/
|
||||
if (localStorage.getItem('CompanyInfo')) {
|
||||
let CompanyInfo = JSON.parse(localStorage.getItem('CompanyInfo'));
|
||||
if (CompanyInfo.EmailRegexStr) {
|
||||
reg = CompanyInfo.EmailRegexStr
|
||||
}
|
||||
}
|
||||
if (this.userForm.EMail && reg.test(this.userForm.EMail)) {
|
||||
this.sendDisabled = false
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue