mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-20 04:19:22 +08:00
fix: 修复在线状态显示和负载单位
This commit is contained in:
@@ -181,14 +181,16 @@ export const NodeCard = ({ node, enableSwap }: NodeCardProps) => {
|
||||
</div>
|
||||
<div className="flex justify-between text-xs">
|
||||
<div className="flex justify-start w-full">
|
||||
<span className="text-secondary-foreground">到期:</span>
|
||||
<div className="flex items-center gap-1">{expired_at}</div>
|
||||
<span className="text-secondary-foreground">
|
||||
到期:{expired_at}
|
||||
</span>
|
||||
</div>
|
||||
<div className="border-l border-border/60 mx-2"></div>
|
||||
<div className="flex justify-end w-full">
|
||||
<span className="text-secondary-foreground">在线:</span>
|
||||
<span>
|
||||
{isOnline && stats ? formatUptime(stats.uptime) : "离线"}
|
||||
<span className="text-secondary-foreground">
|
||||
{isOnline && stats
|
||||
? `在线:${formatUptime(stats.uptime)}`
|
||||
: "离线"}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user