mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-14 12:14:42 +01:00
Import Sentry
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user