From fad42414dcccad416b8fe76d3ee8ef42c95a8230 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 21 Jun 2021 17:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=BA=93=EF=BC=9A=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BF=A1=E6=81=AF=E7=9A=84=E6=98=BE=E7=A4=BA=E5=92=8C?= =?UTF-8?q?=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/CoderDepot.jsx | 8 ++++++-- src/forge/Main/Index.scss | 28 ++++++++++++++++------------ 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 7aaab83d8..d2b63d875 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -107,6 +107,7 @@ function CoderDepot(props){ setMainFlag(true); setReadOnly(true); setReadme(result.data.readme); + setHide(true); } setTimeout(function(){setIsSpin(false);},500); }).catch(error=>{setIsSpin(false);}) @@ -118,7 +119,7 @@ function CoderDepot(props){ let ele = document.getElementById("ptxt"); if(ele){ let h = ele.offsetHeight; - if( h > 18 ) setHideBtn(true) + if( h > 18 ) setHideBtn(true); } } },[projectDetail,lastCommit]) @@ -149,6 +150,7 @@ function CoderDepot(props){ setLastCommitAuthor(c && c.committer); setMainFlag(false); setReadOnly(true); + setHide(true); } setTimeout(function(){setIsSpin(false);},500) }).catch(error=>{setIsSpin(false);}) @@ -332,7 +334,9 @@ function CoderDepot(props){ lastCommit &&
{lastCommit && lastCommit.message}
{lastCommit && lastCommit.message}+