From cfe3570d12d1ec5e5764526e7eb7ab296c662261 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Fri, 12 Jan 2024 00:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20webp=20=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=A4=A7=E5=9B=BE=E7=89=87=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E6=88=90=20png?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *PostID:47621154 --- src/components/post/tp-image.vue | 2 +- src/plugins/Mys/utils/getNewsCard.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/post/tp-image.vue b/src/components/post/tp-image.vue index 7346ac38..c67b4e7e 100644 --- a/src/components/post/tp-image.vue +++ b/src/components/post/tp-image.vue @@ -61,7 +61,7 @@ function getImageTitle(): string { function getImageUrl(): string { const img = props.data.insert.image; - const append = "?x-oss-process=image/format,webp"; + const append = "?x-oss-process=image/format,png"; return img + append; } diff --git a/src/plugins/Mys/utils/getNewsCard.ts b/src/plugins/Mys/utils/getNewsCard.ts index 94caf248..b0cd9cca 100644 --- a/src/plugins/Mys/utils/getNewsCard.ts +++ b/src/plugins/Mys/utils/getNewsCard.ts @@ -71,7 +71,7 @@ export function getPostCover(item: TGApp.Plugins.Mys.News.Item): string { if (cover === undefined) { cover = defaultCover; } else { - cover = `${cover}?x-oss-process=image/format,webp`; + cover = `${cover}?x-oss-process=image/format,png`; } return cover; }