From 5a37a9bb8693a1e8c49a1bc8f3cebceb18e9c856 Mon Sep 17 00:00:00 2001 From: NewName Date: Tue, 20 May 2025 17:51:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=98=BE=E7=A4=BA=E7=BB=93?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ghproxy/public/search.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ghproxy/public/search.html b/ghproxy/public/search.html index 3cff243..6ca75ef 100644 --- a/ghproxy/public/search.html +++ b/ghproxy/public/search.html @@ -631,7 +631,8 @@ const card = document.createElement('div'); card.className = 'result-card'; - const name = result.repo_name || ''; + // 构建显示名称 + const displayName = result.is_official ? result.name : `${result.namespace}/${result.name}`; const description = result.short_description || '暂无描述'; const starCount = result.star_count || 0; const pullCount = result.pull_count || 0; @@ -650,7 +651,7 @@ card.innerHTML = `
- ${name} + ${displayName} ${badges.join(' ')}
${description}