gitmodule

This commit is contained in:
caishi 2023-02-10 15:02:45 +08:00
parent 71ca30a0b6
commit be49d50e5d
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function CoderDepotCatalogue({item , goToSubRoot , owner , projectsId , platform
<a href={`${item.submodule_git_url.slice(0,item.submodule_git_url.length-4)}`} target="_self">
<i className={`iconfont ${typeIco[`${item.type}`]} mr8`}></i>{item.name}
</a>
<span className="ml2">@</span><a href={`/${owner}/${projectsId}/commits/${truncateCommitId(item.sha)}`} title={item.sha}>{truncateCommitId(item.sha)}</a>
<span className="ml2">@</span><a href={`/${item.submodule_git_url.slice(0,item.submodule_git_url.length-4)}/commits/${truncateCommitId(item.sha)}`} title={item.sha}>{truncateCommitId(item.sha)}</a>
</React.Fragment>
:
<a onClick={()=>goToSubRoot(item.path,item.type,item.name)}>