mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-17 10:08:14 +08:00
🌱 公告解析重构
This commit is contained in:
@@ -28,6 +28,7 @@ export interface TpImage {
|
||||
align?: "center"; // 待补充
|
||||
};
|
||||
}
|
||||
|
||||
interface TpImageProps {
|
||||
data: TpImage;
|
||||
}
|
||||
@@ -66,6 +67,7 @@ function getImageTitle(): string {
|
||||
function getImageUrl(): string {
|
||||
const img = props.data.insert.image;
|
||||
const append = "?x-oss-process=image/format,png";
|
||||
console.log("getImageUrl", img, append);
|
||||
if (img.endsWith(".gif")) return img;
|
||||
return img + append;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user