From 3366efaadde703290d63753b55771ab9dab44daf Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sat, 15 Nov 2025 20:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E5=A4=84=E7=90=86=E6=8B=93?= =?UTF-8?q?=E5=B1=95=E8=A7=A3=E6=9E=90=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/viewPost/tp-image.vue | 8 ++++---- src/components/viewPost/vp-overlay-image.vue | 16 ++++++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/components/viewPost/tp-image.vue b/src/components/viewPost/tp-image.vue index d0a422b9..f918e7b2 100644 --- a/src/components/viewPost/tp-image.vue +++ b/src/components/viewPost/tp-image.vue @@ -129,11 +129,11 @@ function getImageTitle(): string { function getImageExt(): string { if (props.data.attributes && props.data.attributes.ext) return props.data.attributes.ext; - if (typeof props.data.insert.image === "string") { - const arr = props.data.insert.image.split("."); - return arr[arr.length - 1]; + if (typeof props.data.insert.image !== "string") { + return props.data.insert.image.format; } - return props.data.insert.image.format; + const arr = oriUrl.value.split("."); + return arr[arr.length - 1]; }