diff --git a/components/Contacts.vue b/components/Contacts.vue index 4a172ab..267d7ad 100644 --- a/components/Contacts.vue +++ b/components/Contacts.vue @@ -125,6 +125,13 @@ +
@@ -200,16 +207,23 @@ const [phone, phoneAttrs] = defineField('phone') const [service, serviceAttrs] = defineField('service') const [comment, commentAttrs] = defineField('comment') -const onSubmit = handleSubmit(async (values) => { - const payload = new FormData() - payload.append('form-name', 'contacts') - Object.entries(values).forEach(([key, value]) => { - payload.append(key, value as any) - }) +function encode(data: Record