diff --git a/ghproxy/public/search.html b/ghproxy/public/search.html index 4c9c868..9a04b18 100644 --- a/ghproxy/public/search.html +++ b/ghproxy/public/search.html @@ -625,6 +625,11 @@ return; } + // 处理官方镜像 + if (currentRepo.is_official) { + namespace = 'library'; + } + const response = await fetch(`/tags/${namespace}/${name}`); const data = await response.json(); @@ -645,7 +650,7 @@ function displayTags(tags) { const tagList = document.getElementById('tagList'); - const repoName = currentRepo.namespace ? `${currentRepo.namespace}/${currentRepo.name}` : currentRepo.name; + const repoName = currentRepo.repo_name; let header = `