fix. 코드 리팩토링, 워닝 수정

This commit is contained in:
clkim
2025-09-16 18:24:35 +09:00
parent 84b8607bec
commit d6301350ae
10 changed files with 317 additions and 250 deletions

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { useTemplateRegistry } from '#layers/composables/useTemplateRegistry'
import { templateRegistry } from '#layers/registry'
import type { PageDataTemplate } from '#layers/types/api/pageData'
const props = defineProps<{ templates: PageDataTemplate[] }>()
const registry = useTemplateRegistry() as Record<string, { component: any }>
const registry = templateRegistry as Record<string, { component: any }>
const isShowTemplate = (template: PageDataTemplate) => {
return template?.components && Object.keys(template.components).length > 0