mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-27 06:03:22 +08:00
fix(通知管理): 仅在包含ossId时转换通知内容
避免对不包含ossId的通知内容进行不必要的转换查询
This commit is contained in:
@@ -102,9 +102,11 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
const filterRecord = pick(record, Object.keys(defaultValues));
|
const filterRecord = pick(record, Object.keys(defaultValues));
|
||||||
|
|
||||||
// 你可以调用这个方法来显示私有桶的图片(每次获取最新)
|
// 你可以调用这个方法来显示私有桶的图片(每次获取最新)
|
||||||
// 如果你是公开桶 最好去掉这段代码 会造成不必要的查询
|
// 包含ossId 则需要转换
|
||||||
filterRecord.noticeContent =
|
if (filterRecord.noticeContent?.includes('data-oss-id=')) {
|
||||||
(await contentWithOssIdTransform(record.noticeContent)) ?? '';
|
filterRecord.noticeContent =
|
||||||
|
(await contentWithOssIdTransform(record.noticeContent)) ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
formData.value = filterRecord;
|
formData.value = filterRecord;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user