Przeglądaj źródła

fix #1015 then add reset fields

jim 7 lat temu
rodzic
commit
b0d3aad9f3
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/routes/List/TableList.js

+ 1 - 0
src/routes/List/TableList.js

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