Answer the question
In order to leave comments, you need to log in
What is the correct way to receive data via axios?
Hello. I send axios request and do error handling.
If you output error.response.data.errors , then there will be a normal JSON array, but this.errorsAxois is an object.
How to make this.errorsAxios become an array?
.catch(error => {
this.errorsAxios.push(error.response.data.errors);
console.log(this.errorsAxios);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question