统一前端共享工具入口

This commit is contained in:
yml
2026-06-09 20:50:57 +08:00
parent 684e30862d
commit 60324765c5
69 changed files with 106 additions and 1142 deletions
+1 -1
View File
@@ -306,7 +306,7 @@ function roundMoney(value: number) {
function formatRatioNumber(value: number) {
const rounded = roundMoney(value)
return rounded.toFixed(1)
return Number.isInteger(rounded) ? `${rounded}` : rounded.toFixed(2)
}
function formatCompactNumber(value: number) {