From 4cb0fe3e46c6323dfccd2e8f54c7dbc7a32d759b Mon Sep 17 00:00:00 2001 From: Montia37 Date: Fri, 5 Sep 2025 17:07:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA=E5=92=8C=E8=B4=9F=E8=BD=BD?= =?UTF-8?q?=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/sections/NodeCard.tsx | 12 +++++++----- src/components/sections/NodeListItem.tsx | 12 +++++++----- src/components/ui/tooltip.tsx | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/sections/NodeCard.tsx b/src/components/sections/NodeCard.tsx index 8b97c2b..4a4f11b 100644 --- a/src/components/sections/NodeCard.tsx +++ b/src/components/sections/NodeCard.tsx @@ -181,14 +181,16 @@ export const NodeCard = ({ node, enableSwap }: NodeCardProps) => {
- 到期: -
{expired_at}
+ + 到期:{expired_at} +
- 在线: - - {isOnline && stats ? formatUptime(stats.uptime) : "离线"} + + {isOnline && stats + ? `在线:${formatUptime(stats.uptime)}` + : "离线"}
diff --git a/src/components/sections/NodeListItem.tsx b/src/components/sections/NodeListItem.tsx index fd10ca8..f7ba729 100644 --- a/src/components/sections/NodeListItem.tsx +++ b/src/components/sections/NodeListItem.tsx @@ -42,13 +42,15 @@ export const NodeListItem = ({ node, enableSwap }: NodeListItemProps) => {
{node.name}
- 到期: -
{expired_at}
+ + 到期:{expired_at} +
- 在线: - - {isOnline && stats ? formatUptime(stats.uptime) : "离线"} + + {isOnline && stats + ? `在线:${formatUptime(stats.uptime)}` + : "离线"}
diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsx index 0808911..875ef63 100644 --- a/src/components/ui/tooltip.tsx +++ b/src/components/ui/tooltip.tsx @@ -48,7 +48,7 @@ export const CustomTooltip = ({ if (series?.tooltipFormatter) { value = series.tooltipFormatter(value, item.payload); } else if (typeof value === "number") { - value = `${value.toFixed(0)}ms`; + value = `${value.toFixed(0)}`; } else { value = value?.toString() || "-"; }