|
|
@@ -1,6 +1,6 @@
|
|
|
import React, {Component} from 'react';
|
|
|
-
|
|
|
-import {Modal, Row, Col, Input, Icon, Button, Spin} from 'antd';
|
|
|
+import { withRouter } from "react-router-dom";
|
|
|
+import {Modal,Row, Col, Input, Icon, Button, Spin} from 'antd';
|
|
|
|
|
|
import {Mutation, Query} from "react-apollo";
|
|
|
import gql from "graphql-tag";
|
|
|
@@ -56,7 +56,9 @@ class Create extends Component {
|
|
|
visible: false,
|
|
|
confirmLoading: false,
|
|
|
});
|
|
|
- }, 2000);
|
|
|
+ }, 1000);
|
|
|
+ this.props.hideModal();
|
|
|
+ this.props.history.push(`/quant-service/`);
|
|
|
};
|
|
|
|
|
|
render() {
|
|
|
@@ -115,4 +117,4 @@ class Create extends Component {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export default Create;
|
|
|
+export default withRouter(Create);
|