Commit da63267f by zhaochengxiang

数据表类型不选

parent db8bc116
...@@ -199,10 +199,8 @@ const ImportAction = (props) => { ...@@ -199,10 +199,8 @@ const ImportAction = (props) => {
} }
}); });
if (!currentTemplate) return;
form.setFieldsValue({ form.setFieldsValue({
easyDataModelerModelingTemplate: currentTemplate easyDataModelerModelingTemplate: currentTemplate||{}
}); });
const newModelerData = {...modelerData, easyDataModelerModelingTemplate: currentTemplate }; const newModelerData = {...modelerData, easyDataModelerModelingTemplate: currentTemplate };
......
...@@ -35,6 +35,7 @@ const TemplateSelect = ({ value = {}, templates = [], onChange, ...restProps }) ...@@ -35,6 +35,7 @@ const TemplateSelect = ({ value = {}, templates = [], onChange, ...restProps })
onChange={onChange} onChange={onChange}
value={value.name || ''} value={value.name || ''}
placeholder='请选择数据表类型' placeholder='请选择数据表类型'
allowClear
{...restProps} {...restProps}
> >
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment