update multi fetch

This commit is contained in:
AceDataCloud committed 2023-11-05 14:29:11 +08:00
1 parent 5d28ab219f
commit e4bd995e6c
6 files changed
+31 -17

No files matched your search

+4
View File
@@ -1,12 +1,16 @@
import router, { ROUTE_AUTH_LOGIN } from '@/router';
import store from '@/store';
import axios, { AxiosInstance } from 'axios';
import qs from 'qs';
const httpClient: AxiosInstance = axios.create({
baseURL: '/api/v1',
headers: {
'Content-type': 'application/json',
Accept: 'application/json'
},
paramsSerializer: function (params) {
return qs.stringify(params, { arrayFormat: 'repeat' });
}
});