fix(upload): 响应式更新上传项以恢复外部保存按钮。

This commit is contained in:
wuzilong committed 2026-11-01 23:21:14 +08:00
1 parent 1ede95841c
commit eb12c755d3
2 files changed
+120 -2

No files matched your search

@@ -535,13 +535,13 @@ async function uploadRawFile(rawFile: File) {
return false
}
const item: AttachmentItem = {
const item = reactive<AttachmentItem>({
id: `upload-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`,
fileName: rawFile.name,
fileUrl: '',
fileType: rawFile.type,
_uploading: true
}
})
attachments.value.push(item)
const formData = props.bizType