mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-27 08:00:58 +00:00
fix: 限制文件和文件夹名称为空
This commit is contained in:
committed by
zhengkunwang223
parent
2904ed0edc
commit
ddd59cd5f4
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user