diff --git a/packages/apply/index.vue b/packages/apply/index.vue index c98d52f..7c319c7 100644 --- a/packages/apply/index.vue +++ b/packages/apply/index.vue @@ -128,6 +128,16 @@ e.map(item => { item.value = item.value ? item.value : '' + // 确保文件类型字段的 fileList 和 fileListArr 被正确保存 + if (item.edit_input === 'files') { + // 确保 fileList 和 fileListArr 存在 + if (!item.hasOwnProperty('fileList')) { + item.fileList = [] + } + if (!item.hasOwnProperty('fileListArr')) { + item.fileListArr = [] + } + } _arr.push(item) // 更新学员user表中的字段 学员字段有值