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) => {
462
462
(error ) => {
463
463
message .alert (` 对话异常! ${error } ` )
464
464
stopStream ()
465
+ // 需要抛出异常,禁止重试
466
+ throw error
465
467
},
466
468
() => {
467
469
stopStream ()
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ const submit = (data: AiMindMapGenerateReqVO) => {
80
80
onError(err ) {
81
81
console .error (' 生成思维导图失败' , err )
82
82
stopStream ()
83
+ // 需要抛出异常,禁止重试
84
+ throw error
83
85
},
84
86
ctrl: ctrl .value
85
87
})
Original file line number Diff line number Diff line change @@ -57,9 +57,11 @@ const submit = (data: WriteVO) => {
57
57
},
58
58
ctrl: abortController .value ,
59
59
onClose: stopStream ,
60
- onError : (... err ) => {
61
- console .error (' 写作异常' , ... err )
60
+ onError : (error ) => {
61
+ console .error (' 写作异常' , error )
62
62
stopStream ()
63
+ // 需要抛出异常,禁止重试
64
+ throw error
63
65
}
64
66
})
65
67
}
You can’t perform that action at this time.
0 commit comments