mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +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
|
||||
console.log(error);
|
||||
})
|
||||
.finally(function () {
|
||||
.then(function () {
|
||||
// always executed
|
||||
});
|
||||
|
||||
@@ -97,7 +97,7 @@ axios.get('/user', {
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
})
|
||||
.finally(function () {
|
||||
.then(function () {
|
||||
// always executed
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user