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; }