修复删除定时任务

This commit is contained in:
whyour 2021-04-04 17:57:03 +08:00
parent f9f1f9d685
commit 78ab74fe1b

View File

@ -153,9 +153,7 @@ const Crontab = () => {
), ),
onOk() { onOk() {
request request
.delete(`${config.apiPrefix}crons`, { .delete(`${config.apiPrefix}crons/${record._id}`)
data: { _id: record._id },
})
.then((data: any) => { .then((data: any) => {
if (data.code === 200) { if (data.code === 200) {
notification.success({ notification.success({