!73 ref: AxiosInstance paramsSerializer repeat

Merge pull request !73 from lbw/N/A
This commit is contained in:
lbw 2023-10-08 05:01:26 +00:00 committed by Gitee
commit da5d3891b2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -10,8 +10,10 @@ 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'});
}
}
});