mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-13 13:30:53 +08:00
feat: 通知公告 + demo代码
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user