From 80cf32a0b620fda48ad551a28e9b93f977c94d7e Mon Sep 17 00:00:00 2001 From: suzmii Date: Wed, 2 Sep 2026 18:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B3=A5=E7=82=B9=E7=B4=A7?= =?UTF-8?q?=E5=87=91=E6=98=BE=E7=A4=BA=E5=90=91=E4=B8=8A=E8=88=8D=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将万单位紧凑显示改为按一位小数向下截断 保持低于一万和非紧凑模式的显示逻辑不变 --- packages/shared/src/utils/format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/src/utils/format.ts b/packages/shared/src/utils/format.ts index f5e56b534..cc18f5669 100644 --- a/packages/shared/src/utils/format.ts +++ b/packages/shared/src/utils/format.ts @@ -4,7 +4,7 @@ export function formatMudPointCount(value: number, compact = false) { return `${(normalizedValue / 100_000_000).toFixed(1)}亿`; } if (compact && normalizedValue >= 10_000) { - return `${(normalizedValue / 10_000).toFixed(1)}万`; + return `${(Math.floor(normalizedValue / 1_000) / 10).toFixed(1)}万`; } return normalizedValue.toLocaleString('zh-CN'); }