issue和代码库不判断组织
This commit is contained in:
parent
46996c23bf
commit
05dc88c94a
|
|
@ -193,7 +193,7 @@ function checkPathname(projectsId, owner, pathname) {
|
|||
} else if (url.indexOf(`/wiki`) > -1) {
|
||||
name = "wiki"
|
||||
} else if (url.indexOf(`/sbom`) > -1) {
|
||||
name = "server"
|
||||
name = "sbom"
|
||||
}
|
||||
}
|
||||
return name;
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ function DetailBanner({ history,list , owner , projectsId ,showNotification , ur
|
|||
</li>
|
||||
}
|
||||
{
|
||||
owner === "gh_mirrors" && item.menu_name === "code" &&
|
||||
item.menu_name === "code" &&
|
||||
<li className={(pathname==="" || urlFlag) ? "active" : ""}>
|
||||
<Link to={{ pathname: `/${owner}/${projectsId}`, state }}>
|
||||
<i className={"iconfont icon-daimakuicon1 color-grey-3 mr5 font-14"}></i>
|
||||
|
|
@ -71,8 +71,8 @@ function DetailBanner({ history,list , owner , projectsId ,showNotification , ur
|
|||
</li>
|
||||
}
|
||||
{
|
||||
owner === "gh_mirrors" && item.menu_name === "issues" &&
|
||||
<li className={pathname === "server" ? "active" : ""}>
|
||||
item.menu_name === "dataset" &&
|
||||
<li className={pathname === "sbom" ? "active" : ""}>
|
||||
<Link className='newTab' to={{ pathname: `/${owner}/${projectsId}/sbom`, state }}>
|
||||
<i className={"iconfont icon-fuwuicon color-grey-3 mr5 font-15"} style={{marginTop:"1px"}}></i>
|
||||
<span>供应链</span>
|
||||
|
|
@ -80,7 +80,7 @@ function DetailBanner({ history,list , owner , projectsId ,showNotification , ur
|
|||
</li>
|
||||
}
|
||||
{
|
||||
owner === "gh_mirrors" && item.menu_name === "issues" &&
|
||||
item.menu_name === "issues" &&
|
||||
<li className={pathname==="issues" ? "active" : ""}>
|
||||
<Link to={{ pathname: `/${owner}/${projectsId}/issues`, state }}>
|
||||
<Tooltip placement="bottom">
|
||||
|
|
|
|||
Loading…
Reference in New Issue