This commit is contained in:
caicai8 2020-04-24 14:59:25 +08:00
parent cbc0c611ed
commit 0f884343d6
2 changed files with 11 additions and 14 deletions

View File

@ -247,6 +247,11 @@ class Detail extends Component{
// fork项目
forkFunc=()=>{
const { checkIfLogin } = this.props;
if(!checkIfLogin){
this.props.showLoginDialog();
return;
}
this.setState({
isSpin:true
})
@ -256,10 +261,10 @@ class Detail extends Component{
if (result && result.data.status === 0) {
this.props.history.push(`/projects/${result.data.id}/coders`);
this.props.showNotification(result.data.message);
this.setState({
isSpin:false
})
}
this.setState({
isSpin:false
})
}).catch(error=>{
this.setState({
isSpin:false

View File

@ -440,17 +440,9 @@ class LoginDialog extends Component {
this.setState({
isRender: false
})
this.props.Modifyloginvalue();
this.props.history.push("/login");
// this.setState({
// isRender: false
// })
// try {
// this.props.Modifyloginvalue();
// }catch (e) {
//
// }
this.props.Modifyloginvalue();
console.log(this.props);
// this.props.history.push("/login");
}
loginEDU=()=>{