From 3abf3333ec6d93d1359d99f436cc581d320baf6f Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Wed, 28 Jan 2026 10:04:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=80=9A=E7=9F=A5=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BB=85=E5=9C=A8=E5=8C=85=E5=90=ABossId=E6=97=B6=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E9=80=9A=E7=9F=A5=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 避免对不包含ossId的通知内容进行不必要的转换查询 --- apps/web-antd/src/views/system/notice/notice-modal.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/views/system/notice/notice-modal.vue b/apps/web-antd/src/views/system/notice/notice-modal.vue index ccd59424..c4cfb388 100644 --- a/apps/web-antd/src/views/system/notice/notice-modal.vue +++ b/apps/web-antd/src/views/system/notice/notice-modal.vue @@ -102,9 +102,11 @@ const [BasicModal, modalApi] = useVbenModal({ const filterRecord = pick(record, Object.keys(defaultValues)); // 你可以调用这个方法来显示私有桶的图片(每次获取最新) - // 如果你是公开桶 最好去掉这段代码 会造成不必要的查询 - filterRecord.noticeContent = - (await contentWithOssIdTransform(record.noticeContent)) ?? ''; + // 包含ossId 则需要转换 + if (filterRecord.noticeContent?.includes('data-oss-id=')) { + filterRecord.noticeContent = + (await contentWithOssIdTransform(record.noticeContent)) ?? ''; + } formData.value = filterRecord; }