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 }} >