mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:09:19 +08:00
perf: 优化拼多多订单列表索引与查询,并放宽前端超时
This commit is contained in:
@@ -4,13 +4,14 @@ import type { PageQueryDTO, PageResultVO } from '#/types/common';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/** 分页查询拼多多订单 */
|
||||
/** 分页查询拼多多订单(数据量大时可能超过默认 10s) */
|
||||
export async function getPddOrderPageApi(
|
||||
params: PageQueryDTO<PddOrderDTO.Filters>,
|
||||
) {
|
||||
return requestClient.post<PageResultVO<PddOrderVO.Info>>(
|
||||
'/channel/pdd/order/list',
|
||||
params,
|
||||
{ timeout: 60_000 },
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ class RequestClient {
|
||||
},
|
||||
responseReturn: 'raw',
|
||||
// 默认超时时间
|
||||
timeout: 10_000,
|
||||
timeout: 20_000,
|
||||
};
|
||||
const { ...axiosConfig } = options;
|
||||
const requestConfig = merge(axiosConfig, defaultConfig);
|
||||
|
||||
Reference in New Issue
Block a user