@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user