项目首页-educoder平台头像处理

This commit is contained in:
caishi 2021-12-07 16:03:37 +08:00
parent ec4e70d7f0
commit 255ae11012
1 changed files with 8 additions and 1 deletions

View File

@ -85,7 +85,14 @@ function Index() {
projectsList.map((i,k)=>{
return(
<li>
<Link to={`/${i.author && i.author.login}`} target="_blank"><img src={getImageUrl(`/${i.author && i.author.image_url}`)} alt="" /></Link>
{
i.platform === "educoder" ?
<a href="javascript:void(0)" style={{cursor:"default"}}>
<img className="p-r-photo" alt="" src={i.author && i.author.image_url} ></img>
</a>
:
<Link to={`/${i.author && i.author.login}`} target="_blank"><img src={getImageUrl(`/${i.author && i.author.image_url}`)} alt="" /></Link>
}
<div className="itemTitle">
<div className="item-title-infos">
<Link to={`/${i.author && i.author.login}/${i.identifier}`} target="_blank" className="infotitle task-hide">{i.author && i.author.name}/{i.name}</Link>