#40 feat: add catalogue images CRUD and display in product catalog

This commit is contained in:
mono
2026-06-13 16:32:44 -05:00
parent 78dfea8714
commit a2ab4fceb7
7 changed files with 425 additions and 3 deletions

View File

@@ -379,7 +379,7 @@ export default {
this.items = data.map((product) => ({
...product,
quantity: 0,
img: product.img || not_image_product,
img: (product.catalogue_images?.length > 0) ? product.catalogue_images[0] : (product.img || not_image_product),
}));
})
.catch((error) => {