forked from Gitlink/forgeplus-react
update
This commit is contained in:
parent
38b28fce1d
commit
b6c5a87c32
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue