邮箱校验规则默认值问题
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-08-06 13:52:14 +08:00
parent b024252f98
commit 2c5e33903d
1 changed files with 8 additions and 1 deletions

View File

@ -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,}$/' };
}