fix(map): 修正气象监测弹窗展示及标记类型设置

- 仅在标记类型为气象监测时渲染MeteorologicalMonitoring组件
- 选择气象监测标记时添加markType属性用于区分标记类型
master
LiuJiaNan 2026-07-20 16:57:23 +08:00
parent accee1dd51
commit 6c9b5054af
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,9 @@ const CustomModal = () => {
title={modalData.title || ""}
wrapClassName="map_bi_model"
>
<MeteorologicalMonitoring />
{
modalData.markType === "meteorologicalMonitoring" && <MeteorologicalMonitoring />
}
</Modal>
);
};

View File

@ -107,7 +107,7 @@ function RightUtils(props) {
actions.setPureMap(!pureMap);
break;
case "weather":
actions.selectMark({ title: "气象监测" });
actions.selectMark({ title: "气象监测", markType: "meteorologicalMonitoring" });
break;
case "fourColor":
if (!currentPort) {