diff --git a/src/forge/New/Index.js b/src/forge/New/Index.js index c2e2afc0..b0f07326 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({