fix(api): 为默认请求客户端设置无超时限制

避免因网络延迟导致请求意外中断,将默认请求客户端的超时时间设置为0
This commit is contained in:
2026-02-03 10:09:36 +08:00
parent 5c2c5b92dd
commit 1468891bf5

View File

@@ -105,6 +105,7 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) {
export const defaultRequestClient = createRequestClient(apiURL, {
responseReturn: 'data',
timeout: 0,
});
export const baseRequestClient = new RequestClient({ baseURL: apiURL });