fix: 145493 标签列表的提交者错误

fix: 145493 标签列表的提交者错误
This commit is contained in:
amypeng 2026-07-09 14:29:02 +08:00
parent 8c06e275ec
commit 371d93be23
1 changed files with 6 additions and 6 deletions

View File

@ -70,16 +70,16 @@ function Tags(props) {
<Link className="hover tagClass font-16" to={`/${owner}/${projectsId}/tree/${item.name}`} onClick={()=>{window.scrollTo(0,0)}}>{item.name}</Link>
<div className="tagModel">
{
item.tagger &&
<Tooltip placement="top" title={item.tagger.name}>
item.commit?.committer &&
<Tooltip placement="top" title={item.commit.committer.name}>
{
item.tagger.id ?
<Link className="mr3 tagModelImg" to={`/${item.tagger.login}`} onClick={()=>{window.scrollTo(0,0)}}>
<img src={getImageUrl(`/${item.tagger && item.tagger.image_url}`)} alt="" />
item.commit.committer.id ?
<Link className="mr3 tagModelImg" to={`/${item.commit.committer.login}`} onClick={()=>{window.scrollTo(0,0)}}>
<img src={getImageUrl(`/${item.commit.committer && item.commit.committer.image_url}`)} alt="" />
</Link>
:
<span className="mr3 tagModelImg" style={{ cursor: "default" }} onClick={()=>{window.scrollTo(0,0)}}>
<img src={getImageUrl(`/${item.tagger && item.tagger.image_url}`)} alt="" />
<img src={getImageUrl(`/${item.commit.committer && item.commit.committer.image_url}`)} alt="" />
</span>
}
</Tooltip>