round小数位默认改成2
This commit is contained in:
parent
f6e7259287
commit
904821d567
|
@ -166,7 +166,7 @@ export const filters: {
|
|||
},
|
||||
duration: input => (input ? formatDuration(input) : input),
|
||||
bytes: input => (input ? prettyBytes(parseFloat(input)) : input),
|
||||
round: (input, decimals = 0) => {
|
||||
round: (input, decimals = 2) => {
|
||||
if (isNaN(input)) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue