Browse Source

修改超时时间

flyzto 3 months ago
parent
commit
0688290d03
1 changed files with 1 additions and 0 deletions
  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, {
 export const requestClient = createRequestClient(apiURL, {
   responseReturn: 'data',
   responseReturn: 'data',
+  timeout: 30_000,
 });
 });
 
 
 export const baseRequestClient = new RequestClient({ baseURL: apiURL });
 export const baseRequestClient = new RequestClient({ baseURL: apiURL });