We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
cancelToken 底部原理是xmlHttpRequest 的abort
Sorry, something went wrong.
拦截器有对应request和response的设置,request设置发起的请求统一加上token的自定义header
// 添加请求拦截器 axios.interceptors.request.use(function (config) { config.headers.token = 'added by interceptor'; return config; }); // 添加响应拦截器 axios.interceptors.response.use(function (data) { data.data = data.data + ' - modified by interceptor'; return data; });
No branches or pull requests
The text was updated successfully, but these errors were encountered: