[Update] preview

This commit is contained in:
Baghaztra 2025-10-13 16:05:32 +07:00
parent e9c33e0fc9
commit 40e8b59001
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@
</template> </template>
<script setup> <script setup>
import WeddingA from '~/components/templates/wedding/weddingA.vue' import WeddingA from '../templates/wedding/WeddingA.vue'
// Props dari parent (/p/[code].vue) // Props dari parent (/p/[code].vue)
const props = defineProps({ const props = defineProps({

View File

@ -276,7 +276,9 @@ const { data, pending, error } = await useAsyncData(
// Component mapping for known slugs // Component mapping for known slugs
const componentMap = { const componentMap = {
'undangan-minimalis': defineAsyncComponent(() => import('~/components/undangan/undangan-minimalis.vue')), 'undangan-khitan-premium': defineAsyncComponent(() => import('~/components/undangan/undangan-khitan-premium.vue')),
'undangan-ulang-tahun-premium': defineAsyncComponent(() => import('~/components/undangan/undangan-ulang-tahun-premium.vue')),
'undangan-pernikahan-premium': defineAsyncComponent(() => import('~/components/undangan/undangan-pernikahan-premium.vue')),
// Add more mappings as templates are developed // Add more mappings as templates are developed
} }