From 3a3eecdfc5dd1fcda890dc9fcfd6a6d0705fb158 Mon Sep 17 00:00:00 2001 From: kola-web Date: Sat, 25 Jul 2026 16:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=96=E5=AD=90=E7=BC=96=E8=BE=91=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E5=B8=A6=E4=B8=8Aid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/wallForm/index.ts | 5 +++++ 1 file changed, 5 insertions(+) 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 }) },