Merge pull request '修改字段名' (#20) from anln_1.2 into main

Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/tiefen_space_op/pulls/20
This commit is contained in:
yezian 2025-01-21 20:07:23 +08:00
commit 63a6dea9d6
2 changed files with 7 additions and 4 deletions

View File

@ -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) => {
</ConfigProvider>
<Modal
title="新建热榜"
title="新建Banner"
footer={null}
open={isModalOpen}
destroyOnClose={true}

View File

@ -754,7 +754,7 @@ const HotList = (props) => {
className="mt-4 mb-4 float-right"
onClick={() => setIsModalOpen(true)}
>
新建推送+
新建热榜+
</Button>
</div>
{contextHolder}
@ -778,7 +778,7 @@ const HotList = (props) => {
</ConfigProvider>
<Modal
title={!currentStatus ? "新建推送" : "修改推送"}
title={!currentStatus ? "新建热榜" : "修改热榜"}
footer={null}
open={isModalOpen}
onCancel={handleCancelModal}