diff --git a/.gitignore b/.gitignore index 82966e3..1bff08f 100644 --- a/.gitignore +++ b/.gitignore @@ -36,7 +36,7 @@ pnpm-lock.yaml !.yarn/sdks !.yarn/versions .pnp.* - +.history # Vab public/video *.zip diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 5d87a7d..412a05e 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -89,7 +89,7 @@
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) {