小智 5
您可以在第一个捕获中调用第二个:
axios
.get('url')
.then(response => {
// handle response
})
.catch(error => {
axios
.get('url2')
.then(response => {
// handle response
});
});
Run Code Online (Sandbox Code Playgroud)