bug修复

This commit is contained in:
dingyongkang 2022-08-31 10:25:28 +08:00
parent 4e666a8a6d
commit d9e27cf0d8
1 changed files with 9 additions and 6 deletions

View File

@ -95,12 +95,15 @@ class Index extends Component {
this.setOptionsList(owner, 'owners');
}
}).catch(error=>{})
if(!this.props.current_user.has_gitea_user || (this.props.current_user.has_gitea_user && !this.props.current_user.is_sync_pwd)){
this.setState({
giteaVisible:true
})
}
if(this.props.checkIfLogin()){
if(!this.props.current_user.has_gitea_user || (this.props.current_user.has_gitea_user && !this.props.current_user.is_sync_pwd)){
this.setState({
giteaVisible:true
})
}
}
}