correction du data fetching dans la page magasin

This commit is contained in:
Valentin 2024-05-28 17:22:38 +02:00
parent 6fd9620c46
commit 81e25d7004
1 changed files with 2 additions and 2 deletions

View File

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