!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,9 +10,11 @@ import other from './other';
const service: AxiosInstance = axios.create({ const service: AxiosInstance = axios.create({
baseURL: import.meta.env.VITE_API_URL, baseURL: import.meta.env.VITE_API_URL,
timeout: 50000, // 全局超时时间 timeout: 50000, // 全局超时时间
paramsSerializer: (params: any) => { paramsSerializer: {
serialize: (params: any) => {
return qs.stringify(params, {arrayFormat: 'repeat'}); return qs.stringify(params, {arrayFormat: 'repeat'});
} }
}
}); });
/** /**