mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 12:23:29 +08:00
修复创建脚本可能失败
This commit is contained in:
Vendored
+1
-7
@@ -7,10 +7,8 @@ import config from '@/utils/config';
|
||||
const EditNameModal = ({
|
||||
ids,
|
||||
handleCancel,
|
||||
visible,
|
||||
}: {
|
||||
ids?: string[];
|
||||
visible: boolean;
|
||||
handleCancel: () => void;
|
||||
}) => {
|
||||
const [form] = Form.useForm();
|
||||
@@ -34,14 +32,10 @@ const EditNameModal = ({
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
form.resetFields();
|
||||
}, [ids, visible]);
|
||||
|
||||
return (
|
||||
<Modal
|
||||
title={intl.get('修改环境变量名称')}
|
||||
open={visible}
|
||||
open={true}
|
||||
forceRender
|
||||
centered
|
||||
maskClosable={false}
|
||||
|
||||
Reference in New Issue
Block a user