Commit 559f6912 by zhaochengxiang

bug fix

parent 2eb699f1
......@@ -22,11 +22,7 @@ const TemplateAction = (props) => {
//初始化form状态
if (action==='add'||action==='edit') {
form.setFieldsValue({
cnName: '',
name: '',
remark: '',
});
form?.resetFields()
}
if (action === 'add') {
getSupportedDatatypes();
......@@ -51,11 +47,7 @@ const TemplateAction = (props) => {
getSupportedDatatypes();
if (action === 'edit') {
form.setFieldsValue({
cnName: data.cnName||'',
name: data.name||'',
remark: data.remark||'',
});
form.setFieldsValue(data)
}
},
error: () => {
......
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