mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +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) => {
|
||||
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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user