File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,8 @@ const doSendMessageStream = async (userMessage: ChatMessageVO) => {
462462 (error ) => {
463463 message .alert (` 对话异常! ${error } ` )
464464 stopStream ()
465+ // 需要抛出异常,禁止重试
466+ throw error
465467 },
466468 () => {
467469 stopStream ()
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ const submit = (data: AiMindMapGenerateReqVO) => {
8080 onError(err ) {
8181 console .error (' 生成思维导图失败' , err )
8282 stopStream ()
83+ // 需要抛出异常,禁止重试
84+ throw error
8385 },
8486 ctrl: ctrl .value
8587 })
Original file line number Diff line number Diff line change @@ -57,9 +57,11 @@ const submit = (data: WriteVO) => {
5757 },
5858 ctrl: abortController .value ,
5959 onClose: stopStream ,
60- onError : (... err ) => {
61- console .error (' 写作异常' , ... err )
60+ onError : (error ) => {
61+ console .error (' 写作异常' , error )
6262 stopStream ()
63+ // 需要抛出异常,禁止重试
64+ throw error
6365 }
6466 })
6567}
You can’t perform that action at this time.
0 commit comments