fix: save file info when updating version

- Add file_path, file_size, file_hash, entry_file to UpdateVersionRequest
- Update these fields when saving version changes
- Update originalUploadedData after successful save

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 09:25:39 +08:00
parent 47f1e9fe43
commit 8cb867e65b
2 changed files with 20 additions and 0 deletions
@@ -219,6 +219,12 @@ async function handleSubmit() {
const response = await api.put(`/dev/versions/${versionId.value}`, payload)
console.log('[DEBUG] handleSubmit response:', response)
// 更新原始数据为最新保存的数据
if (uploadedData.value) {
originalUploadedData.value = { ...uploadedData.value }
}
toast.success(t('admin.versions.createForm.updateSuccess'))
router.push('/admin/versions')
}