高喵喵
高喵喵
我在responseInterceptors中抛出code!==200的错误,但是在errorhandler打印出response为null, 希望能在errorhandler中区分出http status!==200 和 业务错误码code!=='200'的两种错误, 我现在可以通过error.message这样区分,请问怎么才能区分毕竟合理?   request.interceptors.response.use(errorInterceptors);
Thanks for your plugin! But how should I use it ? Just clone the code to my repository? Or use it as a npm package is a better way?