From d9e27cf0d8f60aae31d8d86eef75e005de524b68 Mon Sep 17 00:00:00 2001 From: dingyongkang Date: Wed, 31 Aug 2022 10:25:28 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/New/Index.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/forge/New/Index.js b/src/forge/New/Index.js index 03269751b..1f179653e 100644 --- a/src/forge/New/Index.js +++ b/src/forge/New/Index.js @@ -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 + }) + } + } + }