Merge branch 'bx-696-startproject' of https://git.svs-tech.pro/ksenia_mikhailova/mns-mini-zabor into bx-696-startproject

This commit is contained in:
commit 304800008b
1 changed files with 5 additions and 2 deletions

View File

@ -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>