未验证 提交 a281631a 编写于 作者: C Captain 提交者: GitHub

fix: The value of ignoreCancelToken is not available in headers (#1506)

上级 f9645337
...@@ -80,11 +80,8 @@ export class VAxios { ...@@ -80,11 +80,8 @@ export class VAxios {
// Request interceptor configuration processing // Request interceptor configuration processing
this.axiosInstance.interceptors.request.use((config: AxiosRequestConfig) => { this.axiosInstance.interceptors.request.use((config: AxiosRequestConfig) => {
// If cancel repeat request is turned on, then cancel repeat request is prohibited // If cancel repeat request is turned on, then cancel repeat request is prohibited
const { // @ts-ignore
// @ts-ignore const { ignoreCancelToken } = config.requestOptions;
headers: { ignoreCancelToken },
} = config;
const ignoreCancel = const ignoreCancel =
ignoreCancelToken !== undefined ignoreCancelToken !== undefined
? ignoreCancelToken ? ignoreCancelToken
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册