From 947e104f74bfdcb991662e38c46cfd9ab6d16809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Fri, 30 Jun 2023 17:40:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Information/Component/partner.jsx | 2 +- src/forge/Information/Pages/newsDetail.jsx | 4 +++- src/forge/Information/index.scss | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/forge/Information/Component/partner.jsx b/src/forge/Information/Component/partner.jsx index b2fb731d3..5428233bd 100644 --- a/src/forge/Information/Component/partner.jsx +++ b/src/forge/Information/Component/partner.jsx @@ -24,7 +24,7 @@ function Partner(props) { function getUnit(array){ const newArray = array - setMoreTypes(array.length > 0) + setMoreTypes(array.length > 1) while(newArray[1] && newArray[1].length + newArray[0].length <= 5) { newArray[0] = [...newArray[0], ...newArray.splice(1, 1)[0]] diff --git a/src/forge/Information/Pages/newsDetail.jsx b/src/forge/Information/Pages/newsDetail.jsx index d689e3a90..e33d05978 100644 --- a/src/forge/Information/Pages/newsDetail.jsx +++ b/src/forge/Information/Pages/newsDetail.jsx @@ -32,7 +32,9 @@ function NewsDetail(props){ setContent(Base64.decode(data.content)); setIsSpin(false) } - }).catch(error=>{}) + }).catch(error=>{ + setIsSpin(false) + }) } return(
diff --git a/src/forge/Information/index.scss b/src/forge/Information/index.scss index cd9a04db2..a6fb1f39b 100644 --- a/src/forge/Information/index.scss +++ b/src/forge/Information/index.scss @@ -1084,6 +1084,7 @@ box-shadow:0px 0px 15px rgba(28, 48, 175, 0.08); transition: 0.1s linear; img{ + max-width: 180px; max-height: 66px; } &:hover {