mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
fix(front): handle undefined file size in FilePreviewView component to ensure accurate display
This commit is contained in:
@@ -16,6 +16,6 @@ const fileInfo = computed(() => {
|
||||
<div class="truncate">{{ fileInfo?.name }}</div>
|
||||
<div>{{ `.${fileInfo?.ext}` }}</div>
|
||||
</div>
|
||||
<div class="text-xs opacity-50">{{ filesize(value?.size) }}</div>
|
||||
<div class="text-xs opacity-50">{{ filesize(value?.size ?? 0) }}</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user