25 lines
491 B
Vue
25 lines
491 B
Vue
<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> |