From 2470eed417a2bb3081d813c691fd6b7ccd120924 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 21 Dec 2023 20:43:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AF=BB=E5=8F=96=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=AB=AF=E6=8F=90=E4=BE=9B=E7=9A=84=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/app.ts | 7 +++++++ src/views/index.vue | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index 71c7bcd3..d623ce23 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -14,6 +14,9 @@ type AppStore = { /**应用版本 */ appVersion: string; + /**服务版本 */ + version: string, + buildTime: string, /**应用版权声明 */ copyright: string; /**LOGO显示类型 */ @@ -41,6 +44,8 @@ const useAppStore = defineStore('app', { appCode: import.meta.env.VITE_APP_CODE, appVersion: import.meta.env.VITE_APP_VERSION, + version: `-`, + buildTime: `-`, copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`, logoType: 'icon', filePathIcon: '', @@ -70,6 +75,8 @@ const useAppStore = defineStore('app', { async fnSysConf() { const res = await getSysConf(); if (res.code === RESULT_CODE_SUCCESS && res.data) { + this.version = res.data.version; + this.buildTime = res.data.buildTime; this.appName = res.data.title; this.copyright = res.data.copyright; this.logoType = res.data.logoType; diff --git a/src/views/index.vue b/src/views/index.vue index c5f1cf3e..81f03cd2 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -106,7 +106,7 @@ let tableState: TabeStateType = reactive({ /**表格状态 */ let nfInfo: any = reactive({ obj: 'OMC', - version: '2.2312.9', + version: appStore.version, status: t('views.index.normal'), number: '', outTimeDate: '',