From 78ab74fe1be0bfbcccd006428db91b7eb0ce9761 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 4 Apr 2021 17:57:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/crontab/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx index 4802fd25..2147bb83 100644 --- a/src/pages/crontab/index.tsx +++ b/src/pages/crontab/index.tsx @@ -153,9 +153,7 @@ const Crontab = () => { ), onOk() { request - .delete(`${config.apiPrefix}crons`, { - data: { _id: record._id }, - }) + .delete(`${config.apiPrefix}crons/${record._id}`) .then((data: any) => { if (data.code === 200) { notification.success({