优化代码

This commit is contained in:
java110 2022-09-19 18:06:56 +08:00
parent 71727de57e
commit 48456656d1

View File

@ -240,6 +240,10 @@
);
},
_freshPhotoOrVedio: function(_advertItems) {
if (!_advertItems || _advertItems.size() < 1) {
vc.emit('editAdvert', 'uploadImage', 'notifyPhotos', []);
}
//判断属性中是否有照片
_advertItems.forEach(function(_item) {
vc.component.editAdvertInfo.viewType = _item.itemTypeCd;