From 659cf2e1192c5b45f7112256f53a878b0c6f4f17 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 25 May 2026 19:07:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=8E=E5=B8=82=E5=88=97=E8=A1=A8=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E7=99=BE=E5=88=86=E6=AF=94=E6=98=BE=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BD=93=E5=9C=B0=E6=97=B6'=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/ScanTerminalDashboard.tsx | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/frontend/components/dashboard/ScanTerminalDashboard.tsx b/frontend/components/dashboard/ScanTerminalDashboard.tsx index bc9a79a9..1029f811 100644 --- a/frontend/components/dashboard/ScanTerminalDashboard.tsx +++ b/frontend/components/dashboard/ScanTerminalDashboard.tsx @@ -182,22 +182,17 @@ function CityRegionList({ }) { const cities = useMemo(() => { const seen = new Set(); - const result: { city: string; name: string; contractCount: number; bestEdge: number | null; signal: string }[] = []; + const result: { city: string; name: string; contractCount: number; localTime: string | null }[] = []; rows.forEach((row) => { const key = String(row.city || "").toLowerCase(); if (seen.has(key)) return; seen.add(key); const cityRows = rows.filter((r) => String(r.city || "").toLowerCase() === key); - const bestEdge = cityRows.reduce((best, r) => { - const e = r.edge_percent ?? 0; - return Math.abs(e) > Math.abs(best) ? e : best; - }, 0); result.push({ city: key, name: rowName(row), contractCount: cityRows.length, - bestEdge, - signal: cityRows[0]?.signal_status || "", + localTime: row.local_time || null, }); }); return result; @@ -206,7 +201,7 @@ function CityRegionList({ return (
- {cities.map(({ city, name, contractCount, bestEdge }) => ( + {cities.map(({ city, name, contractCount, localTime }) => ( ))}