1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2c5e33903d
commit
d047df807e
|
@ -202,6 +202,7 @@ async function VueInit() {
|
||||||
// 获取版本信息
|
// 获取版本信息
|
||||||
let PublishInfo = await getCurrentPublishInfo();
|
let PublishInfo = await getCurrentPublishInfo();
|
||||||
Vue.prototype.$version = PublishInfo.Result;
|
Vue.prototype.$version = PublishInfo.Result;
|
||||||
|
Vue.prototype.$companyInfo = PublishInfo.OtherInfo;
|
||||||
// 获取检查部位
|
// 获取检查部位
|
||||||
Vue.prototype.$getBodyPart = (id) => {
|
Vue.prototype.$getBodyPart = (id) => {
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
|
@ -281,13 +282,13 @@ async function VueInit() {
|
||||||
if (EmailRegexStr) {
|
if (EmailRegexStr) {
|
||||||
return { EmailRegexStr }
|
return { EmailRegexStr }
|
||||||
}
|
}
|
||||||
} else if (PublishInfo.OtherInfo) {
|
} else if (Vue.prototype.$companyInfo) {
|
||||||
let { EmailRegexStr } = PublishInfo.OtherInfo
|
let { EmailRegexStr } = Vue.prototype.$companyInfo
|
||||||
if (EmailRegexStr) {
|
if (EmailRegexStr) {
|
||||||
return { 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.$updateDictionary = function () {
|
||||||
Vue.prototype.$d = function (code) {
|
Vue.prototype.$d = function (code) {
|
||||||
|
|
Loading…
Reference in New Issue