From e0b095ebc952329ae77012325c50f6f23cfdc205 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 27 Jun 2024 16:41:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=94=B9=E4=B8=BA=E5=90=8E=E7=AB=AF=E8=8E=B7?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dictionary/dictionary.js | 8 +++++++- src/main.js | 5 ++++- src/views/login/index.vue | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/api/dictionary/dictionary.js b/src/api/dictionary/dictionary.js index cb2aaec8..35748423 100644 --- a/src/api/dictionary/dictionary.js +++ b/src/api/dictionary/dictionary.js @@ -51,4 +51,10 @@ export function batchAddOrUpdateFrontInternationalization(params) { data: params }) } - +// 获取当前版本 +export function getCurrentPublishInfo() { + return request({ + url: `/PublishLog/getCurrentPublishInfo`, + method: 'get' + }) +} diff --git a/src/main.js b/src/main.js index 638ad4af..fda19646 100644 --- a/src/main.js +++ b/src/main.js @@ -3,7 +3,7 @@ import Vue from 'vue' import 'normalize.css/normalize.css' // A modern alternative to CSS resets 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 { resetReadingRestTime } from '@/api/trials/reading' // import 'element-ui/lib/theme-chalk/index.css' @@ -186,6 +186,9 @@ async function VueInit() { zhMessages[v.Code] = v.ValueCN enMessages[v.Code] = v.Value }) + // 获取版本信息 + let PublishInfo = await getCurrentPublishInfo(); + Vue.prototype.$version = PublishInfo.Result; // 获取检查部位 Vue.prototype.$getBodyPart = (id) => { return new Promise(async (resolve, reject) => { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 7584ccc6..4578d267 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -167,7 +167,7 @@ {{ $t("login:title:system_title") }}

{{ $t("login:title:system") }}

-

V1.5.1.001

+

V{{ $version.Version }}

Copyright © {{ new Date().getFullYear() }} 上海展影医疗科技有限公司 版权所有