forked from Gitlink/forgeplus-react
Merge pull request '增加PRloading状态' (#89) from tongChong/forgeplus-react:hotfix-issue into pre_develop_dev
This commit is contained in:
commit
f34b8f8756
|
@ -110,6 +110,7 @@ class NewMerge extends Component {
|
||||||
const { author , identifier } =oldProject;
|
const { author , identifier } =oldProject;
|
||||||
url += `/${mergeBranch}...${author && author.login}/${identifier}:${localBranch}.json`;
|
url += `/${mergeBranch}...${author && author.login}/${identifier}:${localBranch}.json`;
|
||||||
}
|
}
|
||||||
|
this.setState({isSpin: true});
|
||||||
axios.get(url).then(result=>{
|
axios.get(url).then(result=>{
|
||||||
if(result){
|
if(result){
|
||||||
if (result.data.status === 0) {
|
if (result.data.status === 0) {
|
||||||
|
@ -128,7 +129,9 @@ class NewMerge extends Component {
|
||||||
comparesData:result.data
|
comparesData:result.data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch(error=>{})
|
}).catch(error=>{
|
||||||
|
this.setState({isSpin: false});
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue