forked from Gitlink/forgeplus-react
顶部链接-外链
This commit is contained in:
parent
0717ec8fbb
commit
523c8b36e4
|
@ -35,7 +35,14 @@ function Nav({ users, headData , successFunc , quitFunc , match }){
|
|||
{
|
||||
navs && navs.length>0 && navs.map((i,k)=>{
|
||||
return(
|
||||
<li><Link to={i.link} className={i.link===(match && match.url) ? "color-blue":""}>{i.name}</Link></li>
|
||||
<li>
|
||||
{
|
||||
i.link.indexOf("http") > -1 ?
|
||||
<a href={i.link} target="_blank">{i.name}</a>
|
||||
:
|
||||
<Link to={i.link} className={i.link===(match && match.url) ? "color-blue":""}>{i.name}</Link>
|
||||
}
|
||||
</li>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue