fix: Attach/AttachImage 字段上传后底部活动无法实时更新
This commit is contained in:
parent
a63e476909
commit
718a9cb8b4
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user