diff --git a/src/forge/Component/Contributors.jsx b/src/forge/Component/Contributors.jsx index f6dade6a4..a36b18457 100644 --- a/src/forge/Component/Contributors.jsx +++ b/src/forge/Component/Contributors.jsx @@ -4,7 +4,7 @@ import { Link } from 'react-router-dom'; import { Popover , Spin , Button } from 'antd'; import { getImageUrl } from 'educoder'; import './Component.scss'; -import { getUser } from '../GetData/getData'; +import { getUser4Proj } from '../GetData/getData'; import axios from 'axios'; function Contributors({owner,projectsId,currentLogin}){ @@ -41,7 +41,7 @@ function Contributors({owner,projectsId,currentLogin}){ setIsSpin(true); let a = menuList && menuList.filter(i=>i.login === login); if(a.length === 0){ - let result = await getUser(login); + let result = await getUser4Proj(login, projectsId); let arr = menuList; arr.push({...result}); setMenuList(arr); @@ -94,6 +94,10 @@ function Contributors({owner,projectsId,currentLogin}){ {data.following_count} 关注数 + + {data.contribution_perc} + 贡献度 +