新增财务仪表盘并统一金额到角
This commit is contained in:
@@ -23,7 +23,7 @@ export const commonOnlineTimes = [
|
||||
]
|
||||
|
||||
export function roundMoney(value: number) {
|
||||
return Math.round(value)
|
||||
return Math.round(value * 10) / 10
|
||||
}
|
||||
|
||||
export function roundRatio(value: number) {
|
||||
@@ -31,7 +31,7 @@ export function roundRatio(value: number) {
|
||||
}
|
||||
|
||||
export function formatNumber(value: number) {
|
||||
return Number.isInteger(value) ? `${value}` : `${Math.round(value * 10) / 10}`
|
||||
return (Math.round(value * 10) / 10).toFixed(1)
|
||||
}
|
||||
|
||||
export function readUnitPrice(priceText: string) {
|
||||
|
||||
Reference in New Issue
Block a user