diff --git a/pages/commponent/home/goodList.vue b/pages/commponent/home/goodList.vue index dc1e616..bd485ea 100644 --- a/pages/commponent/home/goodList.vue +++ b/pages/commponent/home/goodList.vue @@ -192,7 +192,7 @@ } const item = this.goodsItem const cartList = getCart() - item.imgList = item.url.split(',') + item.imgList = (item.url && item.url.split(',')) ||[] item.number = number item._selectedSku = [{ id: item.id,