From 2c5e33903df7c92170c42ec6c2545fa34d12ff06 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 6 Aug 2025 13:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E7=AE=B1=E6=A0=A1=E9=AA=8C=E8=A7=84?= =?UTF-8?q?=E5=88=99=E9=BB=98=E8=AE=A4=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index a20f1cec..7da2c8cf 100644 --- a/src/main.js +++ b/src/main.js @@ -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,}$/' }; }