瀏覽代碼

修改超时时间

flyzto 3 月之前
父節點
當前提交
0688290d03
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      web/apps/web-antd/src/api/request.ts

+ 1 - 0
web/apps/web-antd/src/api/request.ts

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