From 962a81c81eb11f3e8967eea07332c6a1199d1a86 Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 6 May 2021 16:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cron=E6=96=B0=E5=BB=BAlabel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/cookie/index.tsx | 2 +- src/pages/cookie/modal.tsx | 4 ++-- src/pages/crontab/modal.tsx | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/cookie/index.tsx b/src/pages/cookie/index.tsx index 71ccfaeb..f2faf344 100644 --- a/src/pages/cookie/index.tsx +++ b/src/pages/cookie/index.tsx @@ -362,7 +362,7 @@ const Config = () => { }); }; - const handleCancel = (cookies: any[]) => { + const handleCancel = (cookies?: any[]) => { setIsModalVisible(false); if (cookies && cookies.length > 0) { handleCookies(cookies); diff --git a/src/pages/cookie/modal.tsx b/src/pages/cookie/modal.tsx index b8731a48..77390c33 100644 --- a/src/pages/cookie/modal.tsx +++ b/src/pages/cookie/modal.tsx @@ -10,7 +10,7 @@ const CookieModal = ({ }: { cookie?: any; visible: boolean; - handleCancel: (needUpdate?: boolean) => void; + handleCancel: (cks?: any[]) => void; }) => { const [form] = Form.useForm(); const [loading, setLoading] = useState(false); @@ -92,7 +92,7 @@ const CookieModal = ({ diff --git a/src/pages/crontab/modal.tsx b/src/pages/crontab/modal.tsx index ea6ee681..81a28674 100644 --- a/src/pages/crontab/modal.tsx +++ b/src/pages/crontab/modal.tsx @@ -68,14 +68,14 @@ const CronModal = ({ >
- + - - + + - +