From c2bf8adbeca5e062670b365af9f82d6b31dde35d Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Wed, 2 Sep 2026 09:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Map.jsx | 3 ++- src/pages/Home.tsx | 10 +++++----- src/pages/RealTimeMonitor.tsx | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/components/Map.jsx b/src/components/Map.jsx index ef13719..f45087f 100644 --- a/src/components/Map.jsx +++ b/src/components/Map.jsx @@ -401,6 +401,7 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine, } } } + console.log('已发布的图层:', publishedLayers); displayPublishedLayers(publishedLayers, baseUrl); }) .catch(error => console.error('获取图层失败:', error)); @@ -1096,7 +1097,7 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine, planLineRef.current = null; } - + viewer.scene.requestRender(); } prevIfClearPlanLine.current = ifClearPlanLine; diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 3cd0d03..69d7a97 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, useRef } from 'react'; +import React, { useState, useEffect, useRef } from 'react'; import { Card, Row, Col, Statistic, Button, Space, Tag, Typography, Table, message } from 'antd'; import { CloudOutlined, ThunderboltOutlined, BarChartOutlined, @@ -363,15 +363,15 @@ export default function StationDashboard() { bodyStyle={{ padding: 0, position: 'relative', overflow: 'hidden', height: 500 }} >