setting修改报错时要隐藏加载效果
This commit is contained in:
parent
c0f2c77e1a
commit
bb1175de01
|
@ -157,9 +157,6 @@ class Setting extends Component {
|
|||
...values,
|
||||
}).then((result) => {
|
||||
if (result) {
|
||||
this.setState({
|
||||
loading:false
|
||||
})
|
||||
this.props.showNotification(`仓库信息修改成功!`);
|
||||
if(values.project_identifier !== projectsId){
|
||||
this.props.history.push(`/${owner}/${values.project_identifier}/settings`);
|
||||
|
@ -168,8 +165,10 @@ class Setting extends Component {
|
|||
getDetail && getDetail();
|
||||
}
|
||||
}
|
||||
this.setState({
|
||||
loading:false
|
||||
})
|
||||
}).catch((error) => {
|
||||
console.log(error);
|
||||
this.setState({
|
||||
loading:false
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue