From 0f3df3a80b7f2105a3e5aa43d1bb84cdfdc10c15 Mon Sep 17 00:00:00 2001
From: TsMask <340112800@qq.com>
Date: Fri, 22 Dec 2023 15:54:38 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BB=E9=A1=B5sn=E5=8F=B7=E8=AF=BB?=
=?UTF-8?q?=E5=8F=96=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/app.ts | 4 ++++
src/views/index.vue | 10 +++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts
index d623ce23..2f419814 100644
--- a/src/store/modules/app.ts
+++ b/src/store/modules/app.ts
@@ -17,6 +17,8 @@ type AppStore = {
/**服务版本 */
version: string,
buildTime: string,
+ // 序列号
+ serialNum: string,
/**应用版权声明 */
copyright: string;
/**LOGO显示类型 */
@@ -46,6 +48,7 @@ const useAppStore = defineStore('app', {
version: `-`,
buildTime: `-`,
+ serialNum: `-`,
copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`,
logoType: 'icon',
filePathIcon: '',
@@ -77,6 +80,7 @@ const useAppStore = defineStore('app', {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
this.version = res.data.version;
this.buildTime = res.data.buildTime;
+ this.serialNum = res.data.serialNum;
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 63904854..3041da50 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -109,7 +109,7 @@ let nfInfo: any = reactive({
version: appStore.version,
status: t('views.index.normal'),
outTimeDate: '',
- serialNum: '-',
+ serialNum: appStore.serialNum,
});
/**表格状态类型 */
@@ -163,7 +163,7 @@ function fnGetList(one: boolean) {
tableState.loading = false;
var rightNum = 0;
var errorNum = 0;
- if (res.length) nfInfo.serialNum = res[0].serialNum;
+ // if (res.length) nfInfo.serialNum = res[0].serialNum;
for (let i = 0; i < res.length; i++) {
if (res[i].status == '正常' || res[i].status == 'Normal') {
rightNum++;
@@ -400,15 +400,15 @@ onBeforeUnmount(() => {
nfInfo.obj
}}
+ {{
+ nfInfo.serialNum
+ }}
{{
nfInfo.version
}}
{{
nfInfo.status
}}
- {{
- nfInfo.serialNum
- }}
{{