diff --git a/proyek-frontend/app/components/templates/Ultah/Gallery.vue b/proyek-frontend/app/components/templates/Ultah/Gallery.vue index 63d361c..d55ac4e 100644 --- a/proyek-frontend/app/components/templates/Ultah/Gallery.vue +++ b/proyek-frontend/app/components/templates/Ultah/Gallery.vue @@ -1,10 +1,11 @@ diff --git a/proyek-frontend/app/components/templates/Ultah/Introduction.vue b/proyek-frontend/app/components/templates/Ultah/Introduction.vue index 90f85aa..4d84e42 100644 --- a/proyek-frontend/app/components/templates/Ultah/Introduction.vue +++ b/proyek-frontend/app/components/templates/Ultah/Introduction.vue @@ -1,25 +1,42 @@ @@ -46,6 +58,7 @@ defineProps({ diff --git a/proyek-frontend/app/components/templates/khitan/Introduction.vue b/proyek-frontend/app/components/templates/khitan/Introduction.vue index f592be5..97d01c3 100644 --- a/proyek-frontend/app/components/templates/khitan/Introduction.vue +++ b/proyek-frontend/app/components/templates/khitan/Introduction.vue @@ -18,12 +18,12 @@
- Child + Child
-

{{ data.childName || 'SATRIA HUDA DINATA' }}

+

{{ formData.nama_panggilan || 'SATRIA HUDA DINATA' }}

@@ -31,7 +31,7 @@ Putra Ke Dua Dari
- {{ data.fatherName || 'Bpk H. Munawar Huda, S.H.' }} & {{ data.motherName || 'Ibu Hj. Dinah, A.M.Keb' }} + {{ formData.fatherName || 'Bpk H. Munawar Huda, S.H.' }} & {{ formData.motherName || 'Ibu Hj. Dinah, A.M.Keb' }}
@@ -44,6 +44,16 @@ const props = defineProps({ default: () => ({}) } }) +const formData = computed(() => { + const result = {} + props.data?.fields?.forEach(f => { + result[f.name] = f.value + }) + return result +}) +onMounted(() => { + console.log("๐Ÿงพ Introduction Data:", props.data) +})