From 17e548abb1f0747e080438c3a5c7d61e80519bc3 Mon Sep 17 00:00:00 2001 From: hi2hi Date: Fri, 24 Jan 2025 02:43:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=84=20=E4=BC=98=E5=8C=96v1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=B8=AD=EF=BC=8C=E6=B2=A1=E4=B8=8A=E6=8A=A5=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=B8=BA=E7=A9=BA=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/config.js | 2 +- src/utils/transform-v1-2-v0.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/config.js b/public/config.js index 898ad91..651bee8 100644 --- a/public/config.js +++ b/public/config.js @@ -14,7 +14,7 @@ window.$$nazhuaConfig = { // listServerStatusType: 'progress', // 服务器状态类型--列表 // listServerRealTimeShowLoad: true, // 列表显示服务器实时负载 // detailServerStatusType: 'progress', // 服务器状态类型--详情页 - // serverStatusLinear: true, // 服务器状态渐变线性显示 + serverStatusLinear: true, // 服务器状态渐变线性显示 // disableSarasaTermSC: true, // 禁用Sarasa Term SC字体 // hideWorldMap: false, // 隐藏地图 // hideHomeWorldMap: false, // 隐藏首页地图 diff --git a/src/utils/transform-v1-2-v0.js b/src/utils/transform-v1-2-v0.js index dead487..31cc625 100644 --- a/src/utils/transform-v1-2-v0.js +++ b/src/utils/transform-v1-2-v0.js @@ -100,7 +100,11 @@ export default function (v1Data) { v0Data[key] = Mapping.each(magics[$magic[1]], v1Data); if (key === 'State') { // 修复Load1、Load5、Load15字段为空时的问题 - ['Load1', 'Load5', 'Load15'].forEach((k) => { + [ + 'Load1', 'Load5', 'Load15', + 'NetInTransfer', 'NetOutTransfer', + 'NetInSpeed', 'NetOutSpeed', + ].forEach((k) => { if (!validate.isSet(v0Data[key][k])) { v0Data[key][k] = 0; }