fix. page api 수정된 구조에 맞춰 코드 수정

This commit is contained in:
clkim
2025-09-18 10:18:54 +09:00
parent 61022fb972
commit a9c5cc6bb0
19 changed files with 178 additions and 267 deletions

View File

@@ -1,16 +1,10 @@
<script setup lang="ts">
import { usePageDataStore } from '#layers/stores/usePageDataStore'
import type { PageDataValue } from '#layers/types/api/pageData'
import { getLayoutType } from '#layers/utils/dataUtil'
const pageDataStore = usePageDataStore()
const { pageData } = storeToRefs(pageDataStore)
const getLayoutType = (
pageData: PageDataValue | null
): 'default' | 'promotion' => {
return pageData?.page_type === 1 ? 'default' : 'promotion'
}
const currentLayout = computed(() => getLayoutType(pageData.value))
definePageMeta({