From f90243243f0fe569ad544358fed67ec796e5020a Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 21 Jul 2021 10:09:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E9=A1=B9=E7=9B=AE=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=90=8E=E7=9A=84=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/New/Index.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/forge/New/Index.js b/src/forge/New/Index.js index c2e2afc00..b0f073261 100644 --- a/src/forge/New/Index.js +++ b/src/forge/New/Index.js @@ -181,14 +181,12 @@ class Index extends Component { ignore_id, user_id:owners_id }).then((result) => { - if (result) { - if (result.data.id) { - this.setState({ - isSpin: false - }) - this.props.showNotification(`${projectsType && projectsType === "mirror" ? "镜像" : "托管"}项目创建成功!`); - this.props.history.push(`/projects/${owners_name}/${result.data.identifier}`); - } + if (result && result.data.id) { + this.setState({ + isSpin: false + }) + this.props.showNotification(`${projectsType && projectsType === "mirror" ? "镜像" : "托管"}项目创建成功!`); + this.props.history.push(`/projects/${result.data.login}/${result.data.identifier}`); } }).catch((error) => { this.setState({