mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🐛 webp 无法处理大图片,改成 png
*PostID:47621154
This commit is contained in:
@@ -61,7 +61,7 @@ function getImageTitle(): string {
|
|||||||
|
|
||||||
function getImageUrl(): string {
|
function getImageUrl(): string {
|
||||||
const img = props.data.insert.image;
|
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;
|
return img + append;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export function getPostCover(item: TGApp.Plugins.Mys.News.Item): string {
|
|||||||
if (cover === undefined) {
|
if (cover === undefined) {
|
||||||
cover = defaultCover;
|
cover = defaultCover;
|
||||||
} else {
|
} else {
|
||||||
cover = `${cover}?x-oss-process=image/format,webp`;
|
cover = `${cover}?x-oss-process=image/format,png`;
|
||||||
}
|
}
|
||||||
return cover;
|
return cover;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user