跑马灯内容清空时关闭选择

This commit is contained in:
禺狨 2023-06-09 10:09:20 +08:00
parent b5259a3815
commit 54ffbc731d

View File

@ -373,6 +373,14 @@ const SystemConfigPage = () => {
style={{ width: 274 }}
allowClear
placeholder="自定义跑马灯内容"
onChange={(e) => {
const { value } = e.target;
if (!value && e.type !== "change") {
setNameChecked(false);
setEmailChecked(false);
setIdCardChecked(false);
}
}}
/>
</Form.Item>
<Checkbox