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

This commit is contained in:
2025-08-06 13:52:14 +08:00
parent b024252f98
commit 2c5e33903d
+8 -1
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,}$/' };
}