feat(map): 标记点弹窗重复点击不再只发送一次请求

master
LiuJiaNan 2026-07-27 17:40:38 +08:00
parent 66a8ebf6f7
commit c1f9fd0169
1 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ const CustomModal = () => {
return ( return (
<Modal <Modal
open={modalVisible} open={modalVisible}
destroyOnHidden
mask={{ closable: false }} mask={{ closable: false }}
footer={[ footer={[
<Button key="cancel" onClick={() => actions.resetMark()}>取消</Button>, <Button key="cancel" onClick={() => actions.resetMark()}>取消</Button>,
@ -67,7 +68,7 @@ const CustomModal = () => {
title={modalData.title || ""} title={modalData.title || ""}
classNames={{ root: "map_bi_model" }} classNames={{ root: "map_bi_model" }}
> >
<div key={modalData.id}> <div>
{renderContent()} {renderContent()}
</div> </div>
</Modal> </Modal>