pagekit / vue-resource

The HTTP client for Vue.js
MIT License
10.08k stars 1.6k forks source link

interceptors return function with Promise.reject #678

Open laozhujia opened 6 years ago

laozhujia commented 6 years ago

the reject add to every response handler. when interceptor next function params return a Promise.reject() the first response handler will catch it and run reject. if the reject not throws new error the next response handlers will still run resolve function with the return value of reject function