|
@@ -48,14 +48,11 @@ export function requestData (options) {
|
|
|
});
|
|
|
|
|
|
// 请求拦截器
|
|
|
- XHRReq.interceptors.request.use(
|
|
|
- config => {
|
|
|
- return config;
|
|
|
- },
|
|
|
- err => {
|
|
|
- return Promise.reject(err);
|
|
|
- }
|
|
|
- );
|
|
|
+ XHRReq.interceptors.request.use((config) => {
|
|
|
+ return config;
|
|
|
+ }, (err) => {
|
|
|
+ return Promise.reject(err);
|
|
|
+ });
|
|
|
|
|
|
// 统一格式包装请求参数
|
|
|
let params = new URLSearchParams();
|