From 233d026afd873a79a69ffa19e7b01c7572929cec Mon Sep 17 00:00:00 2001 From: jlpereira Date: Mon, 4 Mar 2024 16:57:22 -0300 Subject: [PATCH] Fix TIFF urls --- src/modules/otus/store/useImageStore.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/otus/store/useImageStore.js b/src/modules/otus/store/useImageStore.js index 14fa47a..d3d3f5b 100644 --- a/src/modules/otus/store/useImageStore.js +++ b/src/modules/otus/store/useImageStore.js @@ -35,9 +35,12 @@ export const useImageStore = defineStore('imageStore', { this.images = response.data.map((item) => { const image = { ...item } + const { url, project_token } = __APP_ENV__ if (UNSUPPORTED_FORMAT.includes(image.content_type)) { - image.original = item.original_png || item.original + if (item.original_png) { + image.original = `${url}/${item.original_png?.substring(8)}?project_token=${project_token}` + } } return image