This commit is contained in:
jxxghp
2023-11-06 11:42:13 +08:00
parent 52bbf65fa8
commit 315274abf9
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ export function formatFileSize(bytes: number) {
if (bytes < 0)
throw new Error('字节数不能为负数。')
const units = ['B', 'K', 'M', 'G', 'T']
const units = ['B', 'KB', 'MB', 'GB', 'TB']
let size = bytes
let unitIndex = 0