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 = ({