邮箱校验规则默认值问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
b024252f98
commit
2c5e33903d
|
@ -278,7 +278,14 @@ async function VueInit() {
|
|||
Vue.prototype.$reg = () => {
|
||||
if (localStorage.getItem('CompanyInfo')) {
|
||||
let { EmailRegexStr } = JSON.parse(localStorage.getItem('CompanyInfo'))
|
||||
return { EmailRegexStr }
|
||||
if (EmailRegexStr) {
|
||||
return { EmailRegexStr }
|
||||
}
|
||||
} else if (PublishInfo.OtherInfo) {
|
||||
let { EmailRegexStr } = PublishInfo.OtherInfo
|
||||
if (EmailRegexStr) {
|
||||
return { EmailRegexStr }
|
||||
}
|
||||
}
|
||||
return { EmailRegexStr: '/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/' };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue