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