Import Sentry

This commit is contained in:
2021-04-27 21:47:26 +02:00
parent 6e45298506
commit c202252f3b
16 changed files with 334 additions and 31 deletions

View File

@@ -76,7 +76,7 @@ export default defineComponent({
const error = ref(false)
const success = ref(false)
const {$axios} = useContext()
const {$axios, $sentry} = useContext()
const form = ref<Form>({} as Form)
const handleForm = async () => {
const {data} = await $axios.post('form',
@@ -97,6 +97,7 @@ export default defineComponent({
form.value = {} as Form
}, 5000)
} else {
$sentry.captureEvent(data)
error.value = true
setTimeout(() => {
error.value = false