统一前端共享工具入口
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user