mahee-auffret/pages/galerie.vue

28 lines
537 B
Vue

<template>
<Projects :contents="galerie" />
</template>
<script>
import Projects from '@/components/Projects.vue';
export default {
setup() {
const galerie = ref([]);
const { data: itemsData } = useFetch('/api/items/galerie', { server: true });
onMounted(async () => {
if (itemsData.value) {
galerie.value = itemsData.value.data;
}
});
return {
galerie
};
},
components: {
Projects
}
};
</script>