This commit is contained in:
caishi 2023-02-07 16:01:09 +08:00
parent 38b28fce1d
commit b6c5a87c32
1 changed files with 2 additions and 2 deletions

View File

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