优化代码

This commit is contained in:
wuxw 2022-09-14 22:41:44 +08:00
parent d10a26ccae
commit b6f2870658

View File

@ -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;