fix(scheduling): remove decimals from km display (1,990.2 → 1,990)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
kkfluous
2026-04-16 22:37:14 +08:00
parent d0984a430b
commit bea67b6710
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ interface Props {
function fmtKm(value: number): string {
if (value >= 10000) return (value / 10000).toFixed(1) + '万';
return value.toLocaleString();
return Math.round(value).toLocaleString();
}
function fmtRate(rate: number): string {

View File

@@ -13,7 +13,7 @@ interface Props {
function fmtKm(value: number): string {
if (value >= 10000) return (value / 10000).toFixed(1) + '万';
return value.toLocaleString();
return Math.round(value).toLocaleString();
}
function fmtRate(rate: number): string {