完善文件管理

This commit is contained in:
dushixiang
2021-02-03 19:53:13 +08:00
parent 9b9dcf9b56
commit 1444891d96
7 changed files with 270 additions and 162 deletions

View File

@ -220,5 +220,5 @@ export function renderSize(value) {
let index = Math.floor(Math.log(srcSize) / Math.log(1024));
let size = srcSize / Math.pow(1024, index);
size = size.toFixed(2);
return size + unitArr[index];
return size + ' ' + unitArr[index];
}