Merge pull request #640 from RickCole21/master

round小数位默认改成2
This commit is contained in:
RickCole 2020-06-01 15:12:28 +08:00 committed by GitHub
commit c67e0d1dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}