Explorar el Código

Merge branch 'lll_chat_fix' of FanYanPeng/EAIFrontend into host-nju

LiuLuLin hace 7 meses
padre
commit
0990a43e86
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/apis/ai.ts

+ 3 - 1
src/apis/ai.ts

@@ -29,7 +29,9 @@ const aiApis = {
         }, {
             params: {
                 dialogueId: dialogueId
-            }
+            },
+             timeout: 60000, // 设置60秒超时(默认通常是0,表示不超时)
+            timeoutErrorMessage: '请求超时,请稍后重试'
         })
     },
     rewrite(assignmentId: number, userId: number) {