Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:Tencent/tdesign-vue-next-starter…
Browse files Browse the repository at this point in the history
… into main
  • Loading branch information
uyarn committed Jan 3, 2023
2 parents ae90d88 + 02ea472 commit 6e60836
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/request/Axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6e60836

Please sign in to comment.