Commit b0d3aad9 authored by jim's avatar jim

fix #1015 then add reset fields

parent ebd6f2ff
...@@ -78,6 +78,7 @@ const CreateForm = Form.create()((props) => { ...@@ -78,6 +78,7 @@ const CreateForm = Form.create()((props) => {
const okHandle = () => { const okHandle = () => {
form.validateFields((err, fieldsValue) => { form.validateFields((err, fieldsValue) => {
if (err) return; if (err) return;
form.resetFields();
handleAdd(fieldsValue); handleAdd(fieldsValue);
}); });
}; };
......
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