ProductBarcode: add image downloading from remote product database

- Backend download images from the database
- Frontend retrieve the image as base64, no architecture change needed
This commit is contained in:
Crumb Owl
2025-06-26 22:44:00 +00:00
parent ec8320bc42
commit d691e908a4
2 changed files with 57 additions and 1 deletions

View File

@@ -315,6 +315,16 @@
{
form.name = active.params.item.name;
form.description = active.params.item.description;
if(active.params.imageURL)
{
form.photos.push({
photoName: "product_view.jpg",
fileBase64: active.params.imageBase64,
primary: form.photos.length === 0,
file: dataURLtoFile(active.params.imageBase64 ,"product_view.jpg")
});
}
}
if (labelId.value) {