issue和代码库不判断组织

This commit is contained in:
谢思 2026-01-06 11:42:16 +08:00
parent 46996c23bf
commit 05dc88c94a
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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">