21 lines
556 B
Vue
21 lines
556 B
Vue
<script setup lang="ts">
|
|
import { usePageDataStore } from '#layers/stores/usePageDataStore'
|
|
import { getLayoutType } from '#layers/utils/dataUtil'
|
|
|
|
const pageDataStore = usePageDataStore()
|
|
const { pageData } = storeToRefs(pageDataStore)
|
|
|
|
const currentLayout = computed(() => getLayoutType(pageData.value))
|
|
|
|
|
|
definePageMeta({
|
|
layout: false, // 동적 레이아웃을 위해 기본 레이아웃 비활성화
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtLayout :name="currentLayout">
|
|
<LayoutsMain v-if="pageData" :page-data="pageData" />
|
|
</NuxtLayout>
|
|
</template>
|