feat: 通知公告 + demo代码

This commit is contained in:
dap
2025-08-01 12:02:24 +08:00
parent 491d36b7a8
commit a2f1dbff71
2 changed files with 11 additions and 0 deletions

View File

@@ -25,6 +25,10 @@ export async function contentWithOssIdTransform(content: string) {
const ossIds = [...imgDom].map(
(img) => (img as HTMLImageElement).dataset.ossId ?? '',
);
// 兼容之前的代码 可能并没有储存ossId
if (ossIds.length === 0) {
return content;
}
const ossFileList = await ossInfo(ossIds);
imgDom.forEach((item) => {