correction du data fetching dans la page magasin
This commit is contained in:
parent
6fd9620c46
commit
81e25d7004
|
@ -27,7 +27,7 @@ export default {
|
||||||
const { data: toilesData } = useFetch('/api/items/toiles', { server: true });
|
const { data: toilesData } = useFetch('/api/items/toiles', { server: true });
|
||||||
const { data: printsData } = useFetch('/api/items/prints', { server: true });
|
const { data: printsData } = useFetch('/api/items/prints', { server: true });
|
||||||
|
|
||||||
onBeforeMount(async () => {
|
onMounted(async () => {
|
||||||
if (toilesData.value) {
|
if (toilesData.value) {
|
||||||
toiles.value = toilesData.value.data;
|
toiles.value = toilesData.value.data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue