Commit 559f6912 by zhaochengxiang

bug fix

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