Commit a281631ae3bd7e5d4a71f19c46e066c860b6a9f7
Committed by
GitHub
1 parent
f9645337
fix: The value of ignoreCancelToken is not available in headers (#1506)
Showing
1 changed file
with
2 additions
and
5 deletions
src/utils/http/axios/Axios.ts
... | ... | @@ -80,11 +80,8 @@ export class VAxios { |
80 | 80 | // Request interceptor configuration processing |
81 | 81 | this.axiosInstance.interceptors.request.use((config: AxiosRequestConfig) => { |
82 | 82 | // If cancel repeat request is turned on, then cancel repeat request is prohibited |
83 | - const { | |
84 | - // @ts-ignore | |
85 | - headers: { ignoreCancelToken }, | |
86 | - } = config; | |
87 | - | |
83 | + // @ts-ignore | |
84 | + const { ignoreCancelToken } = config.requestOptions; | |
88 | 85 | const ignoreCancel = |
89 | 86 | ignoreCancelToken !== undefined |
90 | 87 | ? ignoreCancelToken | ... | ... |