From cf4a68af9d58484c43e347e4a81a83e966cbb27d Mon Sep 17 00:00:00 2001 From: al Date: Tue, 21 Jan 2025 20:01:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/HotManage/components/BannerList/index.jsx | 7 +++++-- src/pages/HotManage/components/HotList/index.jsx | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/HotManage/components/BannerList/index.jsx b/src/pages/HotManage/components/BannerList/index.jsx index d99fc96..9462433 100644 --- a/src/pages/HotManage/components/BannerList/index.jsx +++ b/src/pages/HotManage/components/BannerList/index.jsx @@ -559,10 +559,13 @@ const BannerList = (props) => { }; //关闭弹窗 const handleCancelModal = () => { - form.resetFields(); + form.setFieldsValue(formData); setPathMethod(""); + setSelectedStreamer(null); setIsModalOpen(false); + setZones(null); setDisplayImageId([]); + form.setFieldValue("mid", null); }; // const currentStreamerImage = useMemo(() => { @@ -695,7 +698,7 @@ const BannerList = (props) => { { className="mt-4 mb-4 float-right" onClick={() => setIsModalOpen(true)} > - 新建推送+ + 新建热榜+ {contextHolder} @@ -778,7 +778,7 @@ const HotList = (props) => {