Skip to content

Commit

Permalink
!73 ref: AxiosInstance paramsSerializer repeat
Browse files Browse the repository at this point in the history
Merge pull request !73 from lbw/N/A
  • Loading branch information
lbw authored and gitee-org committed Oct 8, 2023
2 parents 74ee719 + 069279c commit da5d389
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ import other from './other';
const service: AxiosInstance = axios.create({
baseURL: import.meta.env.VITE_API_URL,
timeout: 50000, // 全局超时时间
paramsSerializer: (params: any) => {
return qs.stringify(params, { arrayFormat: 'repeat' });
}
paramsSerializer: {
serialize: (params: any) => {
return qs.stringify(params, {arrayFormat: 'repeat'});
}
}
});

/**
Expand Down

0 comments on commit da5d389

Please sign in to comment.