From 0d11b954925ce2edd1865fcdff29b9612de2fe39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Sun, 16 Nov 2025 21:25:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=95=B0=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/projectHomeNew/v2/index.jsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/forge/Main/projectHomeNew/v2/index.jsx b/src/forge/Main/projectHomeNew/v2/index.jsx index f1acc137..85561588 100644 --- a/src/forge/Main/projectHomeNew/v2/index.jsx +++ b/src/forge/Main/projectHomeNew/v2/index.jsx @@ -64,9 +64,9 @@ function ProjectHomePage(props) { function getInitCount() { const obj = { - countByGHM: 0, + countByGHM: 20000, countByOther: 0, - countByGHMType: 0 + countByGHMType: 10 } axios.get(`/organizations/gh_mirrors/projects.json?page=1&limit=15&sort_by=updated_on&sort_direction=desc`).then(result => { if (result && result.data) { @@ -78,8 +78,12 @@ function ProjectHomePage(props) { obj.countByOther = result.data.total_count - obj.countByGHM } }).finally(()=>{ - cateTopics && cateTopics[39] && (obj.countByGHMType = cateTopics[39].length) - setCount(obj); + // cateTopics && cateTopics[39] && (obj.countByGHMType = cateTopics[39].length) + setCount({ + countByGHM: 20000, + countByOther: obj.countByOther, + countByGHMType: 10 + }); }) } @@ -154,17 +158,17 @@ function ProjectHomePage(props) {
{countByOther}
+{countByOther}+
软件数量{countByGHMType}
+{countByGHMType}+
支持三方组件类型{countByGHM}
+{countByGHM}+
三方组件数