src/views/wxcp/activity/data.ts
@@ -91,6 +91,12 @@ component: 'ImageUpload', componentProps: { valueKey: 'id', // 关键:ImageUpload 在 maxNumber=1 时 getValue() 只吐 URL 字符串, // form-ui 的 valueKey 转换又要求「值是带 status 的对象数组」,字符串会被跳过, // 结果 blobIds 被 normalizeBlobIds 转成 NaN → [],后端把空数组理解为「清空封面」。 // resultField 非空时组件改返回 item.response(上传响应对象 {url,name,id}), // 才拿得到真正的 blobId。 resultField: 'id', maxNumber: 1, multiple: false, disabled: readonly,