From 815c293b28b7d668f688cb79db038cc2ea2b54cd Mon Sep 17 00:00:00 2001 From: "Logan.Li" Date: Mon, 14 Sep 2026 07:33:28 +0000 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20=E4=BF=AE=E5=A4=8D=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E8=B6=8B=E5=8A=BF=E5=9B=BE=E5=8F=96=E6=95=B0=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E6=9C=AA=E5=AE=9A=E4=B9=89=E5=AF=BC=E8=87=B4=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit e0cc547c 移除 generateMetricsData 时删掉了 `const data = ...`, 但 AreaChart 仍引用 `data`,触发 TS2304 "Cannot find name 'data'", 前端 tsc -b 无法通过。改为引用实际的 realData。 // Logan.Li --- frontend/src/components/dashboard/DashboardCharts.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/dashboard/DashboardCharts.tsx b/frontend/src/components/dashboard/DashboardCharts.tsx index d35e904..4bfe6d6 100644 --- a/frontend/src/components/dashboard/DashboardCharts.tsx +++ b/frontend/src/components/dashboard/DashboardCharts.tsx @@ -344,7 +344,7 @@ export function ResourceUsageCard({ {realData.length > 0 ? (
- +