mahee-auffret/pages/galerie.vue

25 lines
491 B
Vue
Raw Normal View History

2024-02-21 00:30:14 +01:00
<template>
<Projects :contents="galerie" />
</template>
<script>
import Projects from '@/components/Projects.vue';
export default {
setup() {
const { getItems } = useDirectusItems();
const galerie = ref([]);
onMounted(async () => {
const items = await getItems({ collection: "galerie" });
galerie.value = items;
});
return {
galerie
};
},
components: {
Projects
}
};
</script>