高喵喵

Results 2 issues of 高喵喵

我在responseInterceptors中抛出code!==200的错误,但是在errorhandler打印出response为null, 希望能在errorhandler中区分出http status!==200 和 业务错误码code!=='200'的两种错误, 我现在可以通过error.message这样区分,请问怎么才能区分毕竟合理? ![image](https://user-images.githubusercontent.com/7437397/125459663-f477d874-3332-4931-a4a5-c3c7cd86c6a0.png) ![image](https://user-images.githubusercontent.com/7437397/125457542-f4f9fcc9-1544-4a2b-98a6-8725c44801c3.png) 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?