From ce86edef6c754391c6b9d279d6f1811e0d981dd8 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Wed, 27 Dec 2023 17:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A6=96=E9=A1=B5=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=BD=91=E5=85=83=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/api/index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index ae576f49..666154e6 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -37,6 +37,8 @@ export async function listMain() { const ipAddress = (value as any).ipAddress; const systemState = (value as any).systemState; const serialNum = (value as any).serialNum; + const version = (value as any).version; + const errCode = systemState && systemState['errorCode']; var time = new Date(); @@ -52,10 +54,10 @@ export async function listMain() { }; } else { mergedObj = { - version: '-', + version, refresh: parseDateToStr(time), - ipAddress: ipAddress, - serialNum: serialNum, + ipAddress, + serialNum, name: key.split('/').join('_'), status: 'Abnormal', };