mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +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) => {
|
||||
const img = vItem.previewImgUrl || vItem.imgUrl || vItem.img_url;
|
||||
if (img) {
|
||||
imageList.push(img);
|
||||
const imgUrl = vItem.previewImgUrl || vItem.imgUrl || vItem.img_url;
|
||||
|
||||
if (imgUrl && imageList.indexOf(imgUrl) === -1) {
|
||||
imageList.push(imgUrl);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user