更改字节转换方法

This commit is contained in:
李志鹏
2026-04-23 17:03:45 +08:00
parent 09125378b6
commit 71cfef996d
2 changed files with 8 additions and 6 deletions

View File

@@ -84,7 +84,7 @@
})
const allTotalSize = computed(() => {
const total = list.value.reduce((pre, cur) => pre + cur.fileSize, 0)
const str = FormatBytes(total)
const str = FormatBytes(total, { unitBig: true })
return {
size: str.split(' ')[0],
unit: str.split(' ')[1]