From 2748696b9f07053ccf01f15e9cedf832d145a6a4 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 30 Aug 2023 10:30:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=94=AF=E5=88=97=E8=A1=A8=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/tag/Index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/Main/tag/Index.jsx b/src/forge/Main/tag/Index.jsx index ff7648513..664d063ff 100644 --- a/src/forge/Main/tag/Index.jsx +++ b/src/forge/Main/tag/Index.jsx @@ -21,8 +21,8 @@ function Tags(props) { if (projectsId) { const url = `/${owner}/${projectsId}/tags.json`; axios.get(url).then((result) => { - if (result) { - setSource(result.data); + if (result && result.data) { + setSource(result.data.tags); setIsSpin(false); } }).catch(error => {})