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:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user