Merge pull request '新建项目接口报错后前端需要去掉加载效果' (#45) from caishi/forgeplus-react:feature_router into feature_router

This commit is contained in:
jasder 2021-09-03 17:57:01 +08:00
commit 7e1dde4ecd
1 changed files with 3 additions and 4 deletions

View File

@ -209,17 +209,16 @@ class Index extends Component {
user_id:owners_id user_id:owners_id
}).then((result) => { }).then((result) => {
if (result && result.data.id) { if (result && result.data.id) {
this.setState({
isSpin: false
})
projectsType && projectsType !== "mirror" && this.props.showNotification(`托管项目创建成功!`); projectsType && projectsType !== "mirror" && this.props.showNotification(`托管项目创建成功!`);
this.props.history.push(`/${result.data.login}/${result.data.identifier}`); this.props.history.push(`/${result.data.login}/${result.data.identifier}`);
} }
this.setState({
isSpin: false
})
}).catch((error) => { }).catch((error) => {
this.setState({ this.setState({
isSpin: false isSpin: false
}) })
console.log(error);
}) })
} else { } else {
this.setState({ this.setState({