diff --git a/src/pages/wallForm/index.ts b/src/pages/wallForm/index.ts index 58aea80..fa6c813 100644 --- a/src/pages/wallForm/index.ts +++ b/src/pages/wallForm/index.ts @@ -68,12 +68,14 @@ Page({ const fileList = (res.attachments || []).map((item: any) => { if (item.attachmentType == 2) { return { + id: item.id, fileType: 'video', url: item.videoCoverUrl || '', videoUrl: item.attachmentUrl || '', } } return { + id: item.id, fileType: 'image', url: item.attachmentUrl || '', } @@ -155,6 +157,9 @@ Page({ if (isVideo) { attachment.videoCoverUrl = item.url } + if (item.id) { + attachment.id = item.id + } return attachment }) },