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": {