methods: {
onSubmit () {
const asyncLog = async (asyncLog) => {
try {
const formData = new FormData()
formData.set('names', this.name)
formData.set('email', this.email)
formData.set('phone', this.phone)
await this.$store.dispatch('forms/callback', formData)
} catch (e) {
throw e
}
}
asyncLog()
console.log(asyncLog())
}
}