Merge branch 'develop' of github.com:Tencent/tdesign-vue-next-starter into main

This commit is contained in:
Uyarn 2023-01-03 15:55:47 +08:00
commit 6e60836ffa

View File

@ -64,10 +64,7 @@ export class VAxios {
// 请求配置处理
this.instance.interceptors.request.use((config: AxiosRequestConfig) => {
const {
headers: { ignoreRepeatRequest },
} = config;
const ignoreRepeat = ignoreRepeatRequest ?? this.options.requestOptions?.ignoreRepeatRequest;
const ignoreRepeat = this.options.requestOptions?.ignoreRepeatRequest;
if (!ignoreRepeat) axiosCanceler.addPending(config);
if (requestInterceptors && isFunction(requestInterceptors)) {