Closed quinhone closed 7 months ago
@quinhone Hi. The setup method doesn't have "this", so I recommend using a simple import, without using $swal. Also, I'd recommend looking for a different library.
import Swal from 'sweetalert2'
Swal.fire( ) worked for me
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '$swal')
authStore.login(values.email, values.password) .then( () => { router.push({ name: 'dashboard' }) }).catch( () => { this.$swal('Hello Vue world!!!'); })