mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 20:30:48 +08:00
修复修改任务后没有充值模态框字段
This commit is contained in:
@@ -51,6 +51,8 @@ const CookieModal = ({
|
||||
useEffect(() => {
|
||||
if (cookie) {
|
||||
form.setFieldsValue({ cookie });
|
||||
} else {
|
||||
form.resetFields();
|
||||
}
|
||||
}, [cookie]);
|
||||
|
||||
@@ -58,6 +60,7 @@ const CookieModal = ({
|
||||
<Modal
|
||||
title={cookie ? '编辑Cookie' : '新建Cookie'}
|
||||
visible={visible}
|
||||
forceRender
|
||||
onOk={() => {
|
||||
form
|
||||
.validateFields()
|
||||
|
||||
Reference in New Issue
Block a user