feature implement login final changes
This commit is contained in:
1 parent
a566387998
commit
2734e25cce
2 files changed
+23
-25
No files matched your search
@@ -66,14 +66,13 @@ const formData = ref({
|
||||
const handleSubmit = async () => {
|
||||
const promise = authStore.login(formData.value)
|
||||
toast.promise(promise, {
|
||||
loading: 'Calling API',
|
||||
success: (user) => {
|
||||
router.push('/')
|
||||
return `Login Successful - ${user.name}`
|
||||
},
|
||||
error: (error) =>
|
||||
error.response?.data?.message
|
||||
loading: 'Calling API',
|
||||
success: (user) => {
|
||||
router.push('/')
|
||||
return `Login Successful - ${user.name}`
|
||||
},
|
||||
error: (error) =>
|
||||
error.response?.data?.message
|
||||
})
|
||||
router.push('/')
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user