From df905a317c88eb5c6a85bdaa2ba25f5fd19cb933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Thu, 23 Oct 2025 15:18:11 +0800 Subject: [PATCH] =?UTF-8?q?uos=E4=B8=93=E5=8C=BA=E5=AE=9A=E5=88=B6cont.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Information/Pages/homepage/component/news.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/Information/Pages/homepage/component/news.jsx b/src/forge/Information/Pages/homepage/component/news.jsx index 3be75a823..e4843b258 100644 --- a/src/forge/Information/Pages/homepage/component/news.jsx +++ b/src/forge/Information/Pages/homepage/component/news.jsx @@ -88,8 +88,8 @@ function News({data, subTitle, firstDirIntro, secondDirIntro}) { const getNewsList = () => { gethomePageDocList(id).then(result=>{ - if(result){ - setShowNew(result.data.rows && result.data.rows[0]); + if(result && result.data.rows && result.data.rows[0]){ + setShowNew(result.data.rows[0]); } }).catch(error=>{}) }