diff --git a/src/utils/index.js b/src/utils/index.js index 23817cf2..084bc6dd 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -93,7 +93,7 @@ export function deepClone(source, map = new WeakMap()) { return target; } -export function formatSize(size, fixed = 0) { +export function formatSize(size, fixed = 2) { if (isNaN(parseFloat(size))) return '' let kbSize = size / 1024 if (kbSize <= 1024) {