2
0
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:
Xianming Zhong
2020-01-23 04:18:22 +08:00
committed by Yasu Flores
parent 2a0ff479f9
commit 7df84a7ff7
+2 -2
View File
@@ -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
});