file list add show versionNo

This commit is contained in:
caishi 2023-02-09 09:53:58 +08:00
parent 7292cf345b
commit 71ca30a0b6
1 changed files with 6 additions and 3 deletions

View File

@ -29,9 +29,12 @@ function CoderDepotCatalogue({item , goToSubRoot , owner , projectsId , platform
<span><i className={`iconfont ${typeIco[`${item.type}`]} mr8`}></i>{item.name}</span>
:
(item.type === "submodule" ?
<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>
<React.Fragment>
<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>
</React.Fragment>
:
<a onClick={()=>goToSubRoot(item.path,item.type,item.name)}>
<i className={`iconfont ${typeIco[`${item.type}`]} mr8`}></i>{item.name}