From 5347be0614d2ca18e076cbac353c014f417a7d48 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 14 Nov 2022 16:44:53 +0800 Subject: [PATCH] =?UTF-8?q?webIDE=20=E7=82=B9=E5=87=BB=E6=97=B6=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=98=AF=E5=90=A6=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/CoderDepot.jsx | 2 +- src/forge/Merge/MessageCount.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 8836b239f..60c70f051 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -476,7 +476,7 @@ function CoderDepot(props){ } { - checkIfLogin? + checkIfLogin && checkIfLogin()? eventTrack(`/${owner}/${projectsId}/webIDE/tree/${defaultBranch}`)}>Web IDE
: Web IDE
diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js index 74f959919..648cb8c2f 100644 --- a/src/forge/Merge/MessageCount.js +++ b/src/forge/Merge/MessageCount.js @@ -303,7 +303,7 @@ class MessageCount extends Component { codeReview=()=>{ const {history,match , checkIfLogin , showLoginDialog}=this.props; - if(checkIfLogin){ + if(checkIfLogin && checkIfLogin()){ const { projectsId, mergeId , owner } =match.params; const { repo_id } = this.props && this.props.projectDetail; // 埋点