mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:21:12 +08:00
fix: remove axios ignoreRepeatRequest config (#389)
This commit is contained in:
parent
573efe6cd3
commit
02ea472748
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user