Browse Source

remove useless code

ddcat1115 8 years atrás
parent
commit
5c08dabd9f
1 changed files with 0 additions and 11 deletions
  1. 0 11
      src/routes/Forms/TableForm.js

+ 0 - 11
src/routes/Forms/TableForm.js

@@ -23,17 +23,6 @@ export default class TableForm extends PureComponent {
   }
   index = 0;
   cacheOriginData = {};
-  handleSubmit = (e) => {
-    e.preventDefault();
-    this.props.form.validateFieldsAndScroll((err, values) => {
-      if (!err) {
-        this.props.dispatch({
-          type: 'form/submit',
-          payload: values,
-        });
-      }
-    });
-  }
   toggleEditable=(e, key) => {
     e.preventDefault();
     const newData = this.state.data.map(item => ({ ...item }));