前端启动报类型找不到 #200
parent
90e2c6cd68
commit
c21f4e7f82
|
@ -78,9 +78,8 @@ export class VAxios {
|
|||
// 请求侦听器配置处理
|
||||
this.axiosInstance.interceptors.request.use((config: AxiosRequestConfig) => {
|
||||
// If cancel repeat request is turned on, then cancel repeat request is prohibited
|
||||
const {
|
||||
headers: { ignoreCancelToken },
|
||||
} = config;
|
||||
// @ts-ignore
|
||||
const { ignoreCancelToken } = config.requestOptions;
|
||||
|
||||
const ignoreCancel = ignoreCancelToken !== undefined ? ignoreCancelToken : this.options.requestOptions?.ignoreCancelToken;
|
||||
|
||||
|
|
Loading…
Reference in New Issue