mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 21:22:33 +08:00
!73 ref: AxiosInstance paramsSerializer repeat
Merge pull request !73 from lbw/N/A
This commit is contained in:
commit
da5d3891b2
@ -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'});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user