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}+

三方组件数