ff-webpage/pages/index.vue

15 lines
380 B
Vue
Raw Permalink Normal View History

2024-10-30 14:02:47 +00:00
<template>
2024-11-01 13:15:09 +00:00
<NuxtLayout name="landing">
<ContentBuilder :content="content" />
2024-11-01 13:15:09 +00:00
</NuxtLayout>
2024-10-30 14:02:47 +00:00
</template>
2024-11-01 13:15:09 +00:00
<script setup lang="ts">
import type Homepage from "../types/single/homepage";
const { findOne } = useStrapi();
const { data: homepage } = await useAsyncData("homepage", () => findOne<Homepage>("homepage"));
const { content } = homepage.value?.data ?? {};
2024-11-01 13:15:09 +00:00
</script>