1
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-08-06 14:18:33 +08:00
parent 2c5e33903d
commit d047df807e
1 changed files with 4 additions and 3 deletions

View File

@ -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) {