登录页版本信息改为后端获取
continuous-integration/drone/push Build is running Details

uat_us
wangxiaoshuang 2024-06-27 16:41:46 +08:00
parent 898f6ed8f7
commit e0b095ebc9
3 changed files with 12 additions and 3 deletions

View File

@ -51,4 +51,10 @@ export function batchAddOrUpdateFrontInternationalization(params) {
data: params data: params
}) })
} }
// 获取当前版本
export function getCurrentPublishInfo() {
return request({
url: `/PublishLog/getCurrentPublishInfo`,
method: 'get'
})
}

View File

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

View File

@ -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() }} 上海展影医疗科技有限公司
版权所有 版权所有