Files
your-gold/pages/[id]/[slug].vue
2025-06-25 12:43:42 +02:00

27 lines
576 B
Vue

<template>
<KeepAlive>
<component
:is="component.componentInstance"
v-for="component in componentsList"
:key="component.name"
:component="component.component"
/>
</KeepAlive>
</template>
<script setup>
// import { useStore } from "@/stores/store";
const route = useRoute();
const store = useStore();
const menuStore = useMenuStore();
await store.getSections(route.params.id);
onMounted(() => {
menuStore.openMenu = false;
});
// useHead(menuStore.headMeta);
const componentsList = await store.getComponents(route.params.id)
</script>