diff --git a/src/modules/scheduling/SuggestionDetail.tsx b/src/modules/scheduling/SuggestionDetail.tsx index 3389d34..c1113e4 100644 --- a/src/modules/scheduling/SuggestionDetail.tsx +++ b/src/modules/scheduling/SuggestionDetail.tsx @@ -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 { diff --git a/src/modules/scheduling/SwapPreview.tsx b/src/modules/scheduling/SwapPreview.tsx index 83c6aac..28874ea 100644 --- a/src/modules/scheduling/SwapPreview.tsx +++ b/src/modules/scheduling/SwapPreview.tsx @@ -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 {