This commit is contained in:
PC-202306242200\Administrator
2024-09-12 14:27:45 +08:00
parent d84d79d8e1
commit 543a7c095b
16 changed files with 67 additions and 67 deletions

View File

@@ -99,30 +99,30 @@ const GoodsTableList: React.FC = () => {
>
</Button>,
<Button
type="link"
size="small"
danger
key="api/sys/menu/deleteBatchByIds"
onClick={async () => {
Modal.confirm({
title: '删除',
content: '确定删除该项吗?',
okText: '确认',
cancelText: '取消',
onOk: async () => {
const success = await handleRemoveOne(record);
if (success) {
if (actionRef.current) {
actionRef.current.reload();
}
}
},
});
}}
>
</Button>,
// <Button
// type="link"
// size="small"
// danger
// key="api/sys/menu/deleteBatchByIds"
// onClick={async () => {
// Modal.confirm({
// title: '删除',
// content: '确定删除该项吗?',
// okText: '确认',
// cancelText: '取消',
// onOk: async () => {
// const success = await handleRemoveOne(record);
// if (success) {
// if (actionRef.current) {
// actionRef.current.reload();
// }
// }
// },
// });
// }}
// >
// 删除
// </Button>,
],
},
];