fix: Attach/AttachImage 字段上传后底部活动无法实时更新

This commit is contained in:
jingrow 2026-05-19 05:14:23 +08:00
parent a63e476909
commit 718a9cb8b4

View File

@ -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)