From b3d9c7a97a18d292927ca4c52f4374d763a5c039 Mon Sep 17 00:00:00 2001 From: JIANG Date: Wed, 29 Oct 2025 17:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=B4=E7=9A=84=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E6=97=B6=E9=97=B4=E5=AE=9A=E4=BD=8D=E5=88=B0=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E6=9C=80=E8=BF=91=E7=9A=8415=E5=88=86=E9=92=9F?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E9=97=B4=E7=82=B9=E4=B8=8A=EF=BC=9BSCADA=20?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8=E4=BC=98=E5=8C=96=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/OlMap/Controls/Timeline.tsx | 4 ++-- src/components/olmap/SCADADeviceList.tsx | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/OlMap/Controls/Timeline.tsx b/src/app/OlMap/Controls/Timeline.tsx index 5f11322..eddcc85 100644 --- a/src/app/OlMap/Controls/Timeline.tsx +++ b/src/app/OlMap/Controls/Timeline.tsx @@ -395,8 +395,8 @@ const Timeline: React.FC = ({ const currentTime = new Date(); const minutes = currentTime.getHours() * 60 + currentTime.getMinutes(); // 找到最近的前15分钟刻度 - // const roundedMinutes = Math.floor(minutes / 15) * 15; - setCurrentTime(minutes); // 组件卸载时重置时间 + const roundedMinutes = Math.floor(minutes / 15) * 15; + setCurrentTime(roundedMinutes); // 组件卸载时重置时间 return () => { if (intervalRef.current) { diff --git a/src/components/olmap/SCADADeviceList.tsx b/src/components/olmap/SCADADeviceList.tsx index 4afaee0..4e7a533 100644 --- a/src/components/olmap/SCADADeviceList.tsx +++ b/src/components/olmap/SCADADeviceList.tsx @@ -455,7 +455,7 @@ const SCADADeviceList: React.FC = ({ {({ @@ -475,7 +475,6 @@ const SCADADeviceList: React.FC = ({ sx={{ "&.Mui-selected": { backgroundColor: "primary.50", - borderLeft: 3, borderColor: "primary.main", }, "&:hover": {