I am trying to implement some code based on HTTP status code in success response using AXIOS call , How can i access the status code of HTTP response header , and redirect to another component in vu3
how to redirect to another component in vue 3 using AXIOS after getting API response inside ( then block )
589 views Asked by ahmed alsumairi At
2
Assuming your code is something like.
const response = await axios.post("<url>");
You can check withif (response.status === 200)
. Read the full response schema here.