how to redirect to another component in vue 3 using AXIOS after getting API response inside ( then block )
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
Assuming your code is something like. const response = await axios.post("<url>"); You can check with if (response.status === 200). Read the full response schema here.