From 078a453dcf8d263f0014c83c62a6a1d33e980274 Mon Sep 17 00:00:00 2001 From: caishi Date: Sat, 9 Oct 2021 14:56:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=88=B6issue-=E4=B8=8D=E8=B0=83?= =?UTF-8?q?=E7=94=A8copy=E6=8E=A5=E5=8F=A3=EF=BC=8C=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=B7=B3=E7=BC=96=E8=BE=91=E9=A1=B5=EF=BC=8C=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E8=B0=83=E6=96=B0=E5=BB=BA=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/Detail.js | 8 ++------ src/forge/Order/Detail.js | 35 +++++++++++++++++++---------------- src/forge/Order/order_form.js | 1 - 3 files changed, 21 insertions(+), 23 deletions(-) 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`;