🐛 修复动图渲染异常

This commit is contained in:
目棃
2024-02-25 00:16:08 +08:00
parent 2509b488d2
commit 553c1e1bba
2 changed files with 6 additions and 8 deletions

View File

@@ -62,6 +62,7 @@ function getImageTitle(): string {
function getImageUrl(): string {
const img = props.data.insert.image;
const append = "?x-oss-process=image/format,png";
if (img.endsWith(".gif")) return img;
return img + append;
}
</script>