From 043bb2ed3ca67d74c59e457032f37b3e9fcfe444 Mon Sep 17 00:00:00 2001 From: keven1024 Date: Thu, 24 Apr 2025 16:58:29 +0800 Subject: [PATCH] fix(front): handle undefined file size in FilePreviewView component to ensure accurate display --- front/components/FilePreviewView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/components/FilePreviewView.vue b/front/components/FilePreviewView.vue index 06a491a..f6b89ae 100644 --- a/front/components/FilePreviewView.vue +++ b/front/components/FilePreviewView.vue @@ -16,6 +16,6 @@ const fileInfo = computed(() => {
{{ fileInfo?.name }}
{{ `.${fileInfo?.ext}` }}
-
{{ filesize(value?.size) }}
+
{{ filesize(value?.size ?? 0) }}
\ No newline at end of file