11 lines
233 B
JavaScript
11 lines
233 B
JavaScript
|
Vue.http.interceptors.push((request, next) => {
|
||
|
Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;
|
||
|
|
||
|
Vue.nextTick(() => {
|
||
|
setTimeout(() => {
|
||
|
Vue.activeResources--;
|
||
|
}, 500);
|
||
|
});
|
||
|
next();
|
||
|
});
|