Last active
January 25, 2022 10:14
-
-
Save ayoubjamouhi/e03aa2ab50599a247dae9c90eb7f08ec to your computer and use it in GitHub Desktop.
Errors axios laravel handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const errors = error.response; | |
if (errors.status === 422) { | |
this.$vs.loading.close(); | |
this.$vs.notify({ | |
title: "Danger", | |
text: 'Please check your from data', | |
color: "danger", | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment