mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-12 19:30:48 +08:00
修复弹出数据不重置
This commit is contained in:
Vendored
+2
-9
@@ -33,7 +33,7 @@ const EnvModal = ({
|
||||
|
||||
useEffect(() => {
|
||||
form.resetFields();
|
||||
}, [env]);
|
||||
}, [env, visible]);
|
||||
|
||||
return (
|
||||
<Modal
|
||||
@@ -52,15 +52,8 @@ const EnvModal = ({
|
||||
}}
|
||||
onCancel={() => handleCancel()}
|
||||
confirmLoading={loading}
|
||||
destroyOnClose
|
||||
>
|
||||
<Form
|
||||
form={form}
|
||||
layout="vertical"
|
||||
name="env_modal"
|
||||
preserve={false}
|
||||
initialValues={env}
|
||||
>
|
||||
<Form form={form} layout="vertical" name="env_modal" initialValues={env}>
|
||||
<Form.Item
|
||||
name="name"
|
||||
label="名称"
|
||||
|
||||
Reference in New Issue
Block a user