diff --git a/components/Bought.vue b/components/Bought.vue index e48a9b0..1e4c95c 100644 --- a/components/Bought.vue +++ b/components/Bought.vue @@ -104,6 +104,8 @@ const itemb = ref({id: 0, bezeichnung: '', kurzbeschreibung: '', groesse: '', fa const {data: itemsb } = await useFetch('http://ubodroid-2:8081/api/v1/itb'); const {data: typen } = await useFetch('http://ubodroid-2:8081/api/v1/typ'); +let imgurl = ref(); + async function openDetail(id) { await navigateTo({ path: '/itembdetail', @@ -121,7 +123,7 @@ async function openEval(id) { }; function getImageUrl(name) { - return new URL(`${pfad}/${name}`, import.meta.url).href; + return imgurl = computed(() => { return new URL(`${pfad}/${name}`, import.meta.url).href; }); } const onNew = () => {