fix: 限制文件和文件夹名称为空

This commit is contained in:
zhengkunwang223
2023-03-11 20:55:12 +08:00
committed by zhengkunwang223
parent 2904ed0edc
commit ddd59cd5f4
3 changed files with 2 additions and 3 deletions
-1
View File
@@ -122,7 +122,6 @@ export function loadZero(i: number) {
export function computeSize(size: number): string {
const num = 1024.0;
if (size < num) return size + ' B';
if (size < Math.pow(num, 2)) return (size / num).toFixed(2) + ' KB';
if (size < Math.pow(num, 3)) return (size / Math.pow(num, 2)).toFixed(2) + ' MB';