fix: delete confirm add
This commit is contained in:
@@ -160,8 +160,15 @@ export const AppVersionList = () => {
|
||||
/> */}
|
||||
<Tooltip title='Delete'>
|
||||
<Button
|
||||
onClick={() => {
|
||||
versionStore.deleteData(item.id);
|
||||
onClick={(e) => {
|
||||
Modal.confirm({
|
||||
title: 'Delete',
|
||||
content: 'Are you sure delete this data?',
|
||||
onOk: () => {
|
||||
versionStore.deleteData(item.id);
|
||||
},
|
||||
});
|
||||
e.stopPropagation();
|
||||
}}
|
||||
icon={<DeleteOutlined />}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user