Commit f75e0a78 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix(支付参数配置 ): 修改退款证书 删除的问题

parent 23f15430
...@@ -123,6 +123,11 @@ const ModalLayout: React.FC<ModalProps> = ({ ...@@ -123,6 +123,11 @@ const ModalLayout: React.FC<ModalProps> = ({
} }
}, [visible, value]) }, [visible, value])
const handleDelete = () => {
setFiles({});
form.setFieldsValue({ value: undefined })
}
return ( return (
<Modal <Modal
width={576} width={576}
...@@ -154,7 +159,7 @@ const ModalLayout: React.FC<ModalProps> = ({ ...@@ -154,7 +159,7 @@ const ModalLayout: React.FC<ModalProps> = ({
{!isEmpty(files) && ( {!isEmpty(files) && (
<div className={style.upload_fileList}> <div className={style.upload_fileList}>
<Typography.Link>{files.url}</Typography.Link> <Typography.Link>{files.url}</Typography.Link>
<DeleteOutlined className={style.delect_icon} style={{ color: '#00B37A' }} onClick={() => setFiles({})} /> <DeleteOutlined className={style.delect_icon} style={{ color: '#00B37A' }} onClick={() => handleDelete()} />
</div> </div>
)} )}
{isEmpty(files) && ( {isEmpty(files) && (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment