diff --git a/frontend/src/utils/util.ts b/frontend/src/utils/util.ts index 3bd081f7d..e88c6a0f2 100644 --- a/frontend/src/utils/util.ts +++ b/frontend/src/utils/util.ts @@ -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'; diff --git a/frontend/src/views/host/file-management/create/index.vue b/frontend/src/views/host/file-management/create/index.vue index 281a81855..142e8e792 100644 --- a/frontend/src/views/host/file-management/create/index.vue +++ b/frontend/src/views/host/file-management/create/index.vue @@ -22,7 +22,7 @@ @submit.enter.prevent > - + diff --git a/frontend/src/views/host/file-management/rename/index.vue b/frontend/src/views/host/file-management/rename/index.vue index 7ea5299e9..2cbeb69d9 100644 --- a/frontend/src/views/host/file-management/rename/index.vue +++ b/frontend/src/views/host/file-management/rename/index.vue @@ -17,7 +17,7 @@ - +