格式化文件大小默认两位小数
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-07-08 17:41:46 +08:00
parent 74033b2d4f
commit da136787dd
1 changed files with 1 additions and 1 deletions

View File

@ -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) {