mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 02:41:46 +08:00
fix(Sku): duplicate pictures in image preview (#6610)
This commit is contained in:
parent
ca0c7c236d
commit
4230011480
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user