From 81e25d7004af0bea45f4ea8ec65e98c3a3149e5b Mon Sep 17 00:00:00 2001 From: Valentin Date: Tue, 28 May 2024 17:22:38 +0200 Subject: [PATCH] correction du data fetching dans la page magasin --- pages/magasin.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/magasin.vue b/pages/magasin.vue index f391eb1..f85a66e 100644 --- a/pages/magasin.vue +++ b/pages/magasin.vue @@ -26,8 +26,8 @@ export default { const { data: toilesData } = useFetch('/api/items/toiles', { server: true }); const { data: printsData } = useFetch('/api/items/prints', { server: true }); - - onBeforeMount(async () => { + + onMounted(async () => { if (toilesData.value) { toiles.value = toilesData.value.data; }