add paegs/icons/routing/stores

This commit is contained in:
2025-05-29 15:25:24 +02:00
parent 6eeff429e7
commit 837eea76a5
23 changed files with 2581 additions and 275 deletions

24
pages/[id]/[slug].vue Normal file
View File

@ -0,0 +1,24 @@
<template>
<div>
<KeepAlive>
<component :is="component.componentInstance" v-for="component in componentsList" :key="component.name" :component="component.component" />
</KeepAlive>
</div>
</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>