From d047df807eaadc241b9ac16659f97d0a498debfc Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 6 Aug 2025 14:18:33 +0800 Subject: [PATCH] 1 --- src/main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 7da2c8cf..66fff15a 100644 --- a/src/main.js +++ b/src/main.js @@ -202,6 +202,7 @@ async function VueInit() { // 获取版本信息 let PublishInfo = await getCurrentPublishInfo(); Vue.prototype.$version = PublishInfo.Result; + Vue.prototype.$companyInfo = PublishInfo.OtherInfo; // 获取检查部位 Vue.prototype.$getBodyPart = (id) => { return new Promise(async (resolve, reject) => { @@ -281,13 +282,13 @@ async function VueInit() { if (EmailRegexStr) { return { EmailRegexStr } } - } else if (PublishInfo.OtherInfo) { - let { EmailRegexStr } = PublishInfo.OtherInfo + } else if (Vue.prototype.$companyInfo) { + let { EmailRegexStr } = Vue.prototype.$companyInfo if (EmailRegexStr) { return { EmailRegexStr } } } - return { EmailRegexStr: '/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/' }; + return { EmailRegexStr: '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$' }; } Vue.prototype.$updateDictionary = function () { Vue.prototype.$d = function (code) {