diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index 3d82db26f..4e1c241b5 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -688,16 +688,12 @@ class Detail extends Component { } > {/* 复制详情 copyetail*/} - {/* () - } - > */} - () } > + {/* 任务详情 */} { const { projectsId, orderId, owner } = this.props.match.params; - const url = `/${owner}/${projectsId}/issues/${orderId}/copy.json`; - axios - .post(url, { - project_id: projectsId, - id: orderId, - }) - .then((result) => { - if (result) { - this.props.history.push( - `/${owner}/${projectsId}/issues/${result.data.issue_id}/copyetail` - ); - } - }) - .catch((error) => { - console.log(error); - }); + // const url = `/${owner}/${projectsId}/issues/${orderId}/copy.json`; + // axios + // .post(url, { + // project_id: projectsId, + // id: orderId, + // }) + // .then((result) => { + // if (result) { + // this.props.history.push( + // `/${owner}/${projectsId}/issues/${result.data.issue_id}/copyetail` + // ); + // } + // }) + // .catch((error) => { + // console.log(error); + // }); + this.props.history.push( + `/${owner}/${projectsId}/issues/${orderId}/copyetail` + ); }; // 翻页 diff --git a/src/forge/Order/order_form.js b/src/forge/Order/order_form.js index 2c572d594..0858ac527 100644 --- a/src/forge/Order/order_form.js +++ b/src/forge/Order/order_form.js @@ -178,7 +178,6 @@ class order_form extends Component { this.setState({ isSpin: false, }); - console.log(error); }); } else { const url = `/${owner}/${projectsId}/issues/${orderId}.json`;