mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 14:56:36 +08:00
Merge branch 'develop' of github.com:Tencent/tdesign-vue-next-starter into main
This commit is contained in:
commit
6e60836ffa
|
@ -64,10 +64,7 @@ export class VAxios {
|
||||||
|
|
||||||
// 请求配置处理
|
// 请求配置处理
|
||||||
this.instance.interceptors.request.use((config: AxiosRequestConfig) => {
|
this.instance.interceptors.request.use((config: AxiosRequestConfig) => {
|
||||||
const {
|
const ignoreRepeat = this.options.requestOptions?.ignoreRepeatRequest;
|
||||||
headers: { ignoreRepeatRequest },
|
|
||||||
} = config;
|
|
||||||
const ignoreRepeat = ignoreRepeatRequest ?? this.options.requestOptions?.ignoreRepeatRequest;
|
|
||||||
if (!ignoreRepeat) axiosCanceler.addPending(config);
|
if (!ignoreRepeat) axiosCanceler.addPending(config);
|
||||||
|
|
||||||
if (requestInterceptors && isFunction(requestInterceptors)) {
|
if (requestInterceptors && isFunction(requestInterceptors)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user