mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-14 21:24:58 +08:00
修复创建脚本可能失败
This commit is contained in:
@@ -7,10 +7,8 @@ import config from '@/utils/config';
|
||||
const SettingModal = ({
|
||||
file,
|
||||
handleCancel,
|
||||
visible,
|
||||
}: {
|
||||
file?: any;
|
||||
visible: boolean;
|
||||
handleCancel: (cks?: any[]) => void;
|
||||
}) => {
|
||||
const [form] = Form.useForm();
|
||||
@@ -30,15 +28,10 @@ const SettingModal = ({
|
||||
});
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
form.resetFields();
|
||||
setLoading(false);
|
||||
}, [file, visible]);
|
||||
|
||||
return (
|
||||
<Modal
|
||||
title={intl.get('运行设置')}
|
||||
open={visible}
|
||||
open={true}
|
||||
forceRender
|
||||
centered
|
||||
onCancel={() => handleCancel()}
|
||||
|
||||
Reference in New Issue
Block a user