diff --git a/frontend/src/pages/DashboardPage.tsx b/frontend/src/pages/DashboardPage.tsx index 1d9e03a..5825f62 100644 --- a/frontend/src/pages/DashboardPage.tsx +++ b/frontend/src/pages/DashboardPage.tsx @@ -35,7 +35,7 @@ const statusIcon = (s: string) => { const trendColor = (item: GatewayTrendItem): string => { if (item.heartbeat_timeouts > 0) return 'var(--red)' if (item.feishu_disconnects > 0) return 'var(--orange)' - if (item.restarts > 0) return 'var(--yellow)' + if (item.restarts > 0) return 'var(--blue)' return 'var(--green)' } @@ -98,11 +98,9 @@ function HealthBarChart({ {dist.d_profiles && dist.d_profiles.length > 0 && (
D 级 Profile: - {dist.d_profiles.map((name) => ( - - {name} - - ))} + + {dist.d_profiles.join(', ')} +
)} @@ -207,7 +205,7 @@ export default function DashboardPage() { return { time: hourLabel(item.hour), - type: item.heartbeat_timeouts > 0 ? 'red' : item.feishu_disconnects > 0 ? 'orange' : item.restarts > 0 ? 'orange' : 'green', + type: item.heartbeat_timeouts > 0 ? 'red' : item.feishu_disconnects > 0 ? 'orange' : item.restarts > 0 ? 'blue' : 'green', tooltip: tooltipText, color: trendColor(item), } @@ -286,7 +284,7 @@ export default function DashboardPage() { ● 正常 ● 心跳超时 ● 飞书断连 - ● 重启 + ● 重启