2026-03-06 10:23:45 +01:00
|
|
|
<template>
|
|
|
|
|
<IndexContent :slug="slug" />
|
|
|
|
|
</template>
|
|
|
|
|
|
2026-03-06 09:19:25 +01:00
|
|
|
<script setup>
|
2026-03-06 10:23:45 +01:00
|
|
|
import { useModalStore } from "@/stores/ModalStore"
|
|
|
|
|
import { watch } from "vue"
|
|
|
|
|
|
2026-03-06 09:19:25 +01:00
|
|
|
const route = useRoute()
|
2026-03-06 10:23:45 +01:00
|
|
|
const modalStore = useModalStore()
|
2026-03-06 09:19:25 +01:00
|
|
|
const router = useRouter()
|
|
|
|
|
|
|
|
|
|
const slug = route.params.slug
|
|
|
|
|
|
2026-03-06 10:23:45 +01:00
|
|
|
watch(() => modalStore.isOpen, (isOpen) => {
|
|
|
|
|
if (!isOpen) {
|
|
|
|
|
router.push('/')
|
|
|
|
|
}
|
2026-03-06 09:19:25 +01:00
|
|
|
})
|
|
|
|
|
</script>
|