add app json headers
This commit is contained in:
parent
26a6537071
commit
3898bb333e
|
@ -34,15 +34,18 @@ const validate = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const submit = (e: any) => {
|
const submit = (e: any) => {
|
||||||
modal_phone.value = ''
|
|
||||||
isModalOpen.value = false
|
|
||||||
fetch(`${apiBase}/custom_request/`, {
|
fetch(`${apiBase}/custom_request/`, {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
name: "from site",
|
name: "from site",
|
||||||
phone: modal_phone.value
|
phone: modal_phone.value
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
modal_phone.value = ''
|
||||||
|
isModalOpen.value = false
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue