diff --git a/.gitignore b/.gitignore index fbf6bc6..f14ac49 100644 --- a/.gitignore +++ b/.gitignore @@ -36,7 +36,7 @@ package-lock.json !.yarn/sdks !.yarn/versions .pnp.* - +.history # Vab public/video *.zip diff --git a/src/views/product/productList/components/addProductEdit.vue b/src/views/product/productList/components/addProductEdit.vue index dba2ef6..aeb0087 100644 --- a/src/views/product/productList/components/addProductEdit.vue +++ b/src/views/product/productList/components/addProductEdit.vue @@ -2045,8 +2045,8 @@ export default { } }) } else { - if (shop_product_image) { - let image = shop_product_image[0] + if (shop_product_image.length) { + let image = shop_product_image?.[0] obj.main_color_img = image.item_image_default let other = image.item_image_other if (other) {