提交 f5704fce 编写于 作者: S Sagar Acharya 提交者: Felipe Martins

Update response interceptor docs (#2399)

上级 6a4a85c5
......@@ -492,9 +492,11 @@ axios.interceptors.request.use(function (config) {
// Add a response interceptor
axios.interceptors.response.use(function (response) {
// Any status code that lie within the range of 2xx cause this function to trigger
// Do something with response data
return response;
}, function (error) {
// Any status codes that falls outside the range of 2xx cause this function to trigger
// Do something with response error
return Promise.reject(error);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册