Change render for IMG

This commit is contained in:
2025-06-28 11:41:55 -07:00
parent 7c98141415
commit a928346dea
2 changed files with 2 additions and 2 deletions
@@ -11,5 +11,5 @@ export class Product {
export class ProductImage {
imageID: number = 0;
productID: number = 0;
image: Blob | null = null;
imageSrc: string = "";
}
@@ -29,7 +29,7 @@ export class CatalogComponent {
this.Products.forEach(item => {
item.images.forEach(img => {
http.get("https://mistox.com/api/productimage/get?ProductID=" + img.productID + "&ImageID=" + img.imageID, { responseType: 'blob' }).subscribe(blob => {
img.image = blob;
img.imageSrc = URL.createObjectURL(blob);
});
});
});