Dialog.confirm({标签:Toast,content,show,ant,design,onConfirm,225,response,icon From: https://blog.51cto.com/u_15460007/6050152
content: '是否确定删除',
onConfirm: async () => {
const response = await paveClothDeleteByIds({ ids: ids })
if (response.code == 200) {
Toast.show({
icon: 'success',
content: '删除成功',
})
props.onConfirm()
} else {
// message.error('当前裁床不存在');
Toast.show({
icon: 'fail',
content: response.msg,
})
}
},
})