mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Revert finally as then (#2683)
Co-authored-by: Yasu Flores <carlosyasu91@gmail.com>
This commit is contained in:
committed by
Yasu Flores
parent
2a0ff479f9
commit
7df84a7ff7
@@ -81,7 +81,7 @@ axios.get('/user?ID=12345')
|
|||||||
// handle error
|
// handle error
|
||||||
console.log(error);
|
console.log(error);
|
||||||
})
|
})
|
||||||
.finally(function () {
|
.then(function () {
|
||||||
// always executed
|
// always executed
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ axios.get('/user', {
|
|||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
})
|
})
|
||||||
.finally(function () {
|
.then(function () {
|
||||||
// always executed
|
// always executed
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user