修复文件管理字节转换的问题
This commit is contained in:
parent
e9de33ef21
commit
f133eae00e
|
@ -578,7 +578,7 @@ export default defineComponent({
|
|||
align: "center",
|
||||
label: $t.t("file size"),
|
||||
field: (val: FileEntity) =>
|
||||
val.is_directory ? null : Math.ceil((val ? val.file_size : 0) / 1000),
|
||||
val.is_directory ? null : Math.ceil((val ? val.file_size : 0) / 1024),
|
||||
format: (val: any) => (val != null ? `${val} KB` : ""),
|
||||
sortable: true,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue