新增财务仪表盘并统一金额到角
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* @example roundMoney(12.36) -> 12.4
|
||||
*/
|
||||
export function roundMoney(value: number): number {
|
||||
return Math.round(value * 10) / 10
|
||||
return Math.round(Number(value || 0) * 10) / 10
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user