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,
})
}
},
前端项目实战227-ant design 5.0中async和await
最新推荐文章于 2024-02-05 09:40:02 发布