From b6f2870658730e204a98ffdd7f875be5af8d7627 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Wed, 14 Sep 2022 22:41:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/components/property/editAdvert/editAdvert.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/components/property/editAdvert/editAdvert.js b/public/components/property/editAdvert/editAdvert.js index 6f2e9b916..859627568 100755 --- a/public/components/property/editAdvert/editAdvert.js +++ b/public/components/property/editAdvert/editAdvert.js @@ -51,7 +51,14 @@ } }); vc.on("editAdvert", "notifyUploadImage", function(_param) { - vc.component.editAdvertInfo.photos = _param; + + if(!_param || _param.length<1){ + return; + } + vc.component.editAdvertInfo.photos = []; + _param.forEach(item=>{ + vc.component.editAdvertInfo.photos.push(item.fileId) + }); }); vc.on("editAdvert", "notifyUploadVedio", function(_param) { vc.component.editAdvertInfo.vedioName = _param.realFileName;