ソースを参照

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

LiuLuLin 9 ヶ月 前
親
コミット
0990a43e86
1 ファイル変更、3 行追加、1 行削除
  1. 3 1
      src/apis/ai.ts

+ 3 - 1
src/apis/ai.ts

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