Switch to finally for operation.
This commit is contained in:
parent
7af402d542
commit
6b8170324b
|
@ -96,9 +96,7 @@ const BootstrapVueNotifiers = {
|
|||
Vue.prototype.$wrapWithLoading = function (promise) {
|
||||
this.$setLoading(true);
|
||||
|
||||
promise.then(() => {
|
||||
this.$setLoading(false);
|
||||
}).catch(() => {
|
||||
promise.finally(() => {
|
||||
this.$setLoading(false);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue