This commit is contained in:
熊潇 2024-10-08 17:11:30 +08:00
parent 66aae218f3
commit bff92667f4

View File

@ -161,7 +161,13 @@ export const List = () => {
icon={<LinkOutlined />}></Button> icon={<LinkOutlined />}></Button>
<Button <Button
onClick={(e) => { onClick={(e) => {
Modal.confirm({
title: 'Delete',
content: 'Are you sure delete this data?',
onOk: () => {
demoStore.deleteData(item.id); demoStore.deleteData(item.id);
},
});
e.stopPropagation(); e.stopPropagation();
}} }}
icon={<DeleteOutlined />}></Button> icon={<DeleteOutlined />}></Button>