更改字节转换方法
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user