登录页版本信息改为后端获取
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
898f6ed8f7
commit
e0b095ebc9
|
@ -51,4 +51,10 @@ export function batchAddOrUpdateFrontInternationalization(params) {
|
||||||
data: params
|
data: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 获取当前版本
|
||||||
|
export function getCurrentPublishInfo() {
|
||||||
|
return request({
|
||||||
|
url: `/PublishLog/getCurrentPublishInfo`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Vue from 'vue'
|
||||||
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
||||||
|
|
||||||
import ElementUI, { MessageBox } from 'element-ui'
|
import ElementUI, { MessageBox } from 'element-ui'
|
||||||
import { getBasicDataAllSelect, getFrontInternationalizationList } from '@/api/dictionary/dictionary'
|
import { getBasicDataAllSelect, getFrontInternationalizationList, getCurrentPublishInfo } from '@/api/dictionary/dictionary'
|
||||||
import { sendMFAEmail } from "@/api/user.js";
|
import { sendMFAEmail } from "@/api/user.js";
|
||||||
import { resetReadingRestTime } from '@/api/trials/reading'
|
import { resetReadingRestTime } from '@/api/trials/reading'
|
||||||
// import 'element-ui/lib/theme-chalk/index.css'
|
// import 'element-ui/lib/theme-chalk/index.css'
|
||||||
|
@ -186,6 +186,9 @@ async function VueInit() {
|
||||||
zhMessages[v.Code] = v.ValueCN
|
zhMessages[v.Code] = v.ValueCN
|
||||||
enMessages[v.Code] = v.Value
|
enMessages[v.Code] = v.Value
|
||||||
})
|
})
|
||||||
|
// 获取版本信息
|
||||||
|
let PublishInfo = await getCurrentPublishInfo();
|
||||||
|
Vue.prototype.$version = PublishInfo.Result;
|
||||||
// 获取检查部位
|
// 获取检查部位
|
||||||
Vue.prototype.$getBodyPart = (id) => {
|
Vue.prototype.$getBodyPart = (id) => {
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
|
|
|
@ -167,7 +167,7 @@
|
||||||
{{ $t("login:title:system_title") }}
|
{{ $t("login:title:system_title") }}
|
||||||
</p>
|
</p>
|
||||||
<p style="margin-bottom: 20px" v-else>{{ $t("login:title:system") }}</p>
|
<p style="margin-bottom: 20px" v-else>{{ $t("login:title:system") }}</p>
|
||||||
<p style="margin-bottom: 20px">V1.5.1.001</p>
|
<p style="margin-bottom: 20px">V{{ $version.Version }}</p>
|
||||||
<p style="margin-bottom: 20px" v-if="language === 'zh'">
|
<p style="margin-bottom: 20px" v-if="language === 'zh'">
|
||||||
Copyright © {{ new Date().getFullYear() }} 上海展影医疗科技有限公司
|
Copyright © {{ new Date().getFullYear() }} 上海展影医疗科技有限公司
|
||||||
版权所有
|
版权所有
|
||||||
|
|
Loading…
Reference in New Issue