7 lines
190 B
JavaScript
7 lines
190 B
JavaScript
Vue.http.interceptors.push((request, next) => {
|
|
Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;
|
|
|
|
next(function (response) {
|
|
Vue.activeResources--;
|
|
});
|
|
});
|