mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
fix(Sku): duplicate pictures in image preview (#6610)
This commit is contained in:
@@ -267,9 +267,10 @@ export default createComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
treeItem.v.forEach((vItem) => {
|
treeItem.v.forEach((vItem) => {
|
||||||
const img = vItem.previewImgUrl || vItem.imgUrl || vItem.img_url;
|
const imgUrl = vItem.previewImgUrl || vItem.imgUrl || vItem.img_url;
|
||||||
if (img) {
|
|
||||||
imageList.push(img);
|
if (imgUrl && imageList.indexOf(imgUrl) === -1) {
|
||||||
|
imageList.push(imgUrl);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user