From 91faef584465452ab8768374747f251da05fd500 Mon Sep 17 00:00:00 2001 From: JOYCEQL <1449239013@qq.com> Date: Wed, 25 Dec 2024 14:44:43 +0800 Subject: [PATCH] feat: homepage add github stars --- apps/fronted/src/components/shared/GitHubStars.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/fronted/src/components/shared/GitHubStars.tsx b/apps/fronted/src/components/shared/GitHubStars.tsx index 60253e8..23667a5 100644 --- a/apps/fronted/src/components/shared/GitHubStars.tsx +++ b/apps/fronted/src/components/shared/GitHubStars.tsx @@ -28,7 +28,6 @@ export default function GitHubStars() { ); const data: GitHubRepo = await response.json(); const count = data.stargazers_count; - // 格式化数字,例如 1234 -> 1.2k setStars( count >= 1000 ? `${(count / 1000).toFixed(1)}k` : count.toString() );