From 718a9cb8b4a6776caaf267e308cac50314173b1b Mon Sep 17 00:00:00 2001 From: jingrow Date: Tue, 19 May 2026 05:14:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Attach/AttachImage=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=90=8E=E5=BA=95=E9=83=A8=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=AE=9E=E6=97=B6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/core/pagetype/default.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/core/pagetype/default.vue b/frontend/src/core/pagetype/default.vue index 1b8aaefad..a484facba 100644 --- a/frontend/src/core/pagetype/default.vue +++ b/frontend/src/core/pagetype/default.vue @@ -771,8 +771,6 @@ async function handleAddAttachment() { // 重新加载附件列表 await loadDetail() - // 重新加载活动记录 - activitySectionRef.value?.loadDocinfo() } catch (error: any) { message.destroyAll() message.error(error.message || t('Failed to upload attachment')) @@ -791,8 +789,6 @@ async function handleDeleteAttachment(attachment: any) { message.success(t('Attachment deleted successfully')) // 重新加载附件列表 await loadDetail() - // 重新加载活动记录 - activitySectionRef.value?.loadDocinfo() } else { message.error(result.message || t('Failed to delete attachment')) } @@ -1163,6 +1159,8 @@ Object.keys(record).forEach(k => delete record[k]); Object.assign(record, record // Apply field config plugins for all records await applyFieldConfig() + // 刷新活动记录(上传附件/保存等操作后活动记录需同步更新) + activitySectionRef.value?.loadDocinfo() } catch (error) { message.error(t('Failed to load detail')) console.error('Failed to load detail:', error)