Commit d4aa98f8 authored by Joel's avatar Joel

remove log

parent 59480043
...@@ -342,7 +342,6 @@ export const ssePost = (url: string, fetchOptions: any, { isPublicAPI = false, o ...@@ -342,7 +342,6 @@ export const ssePost = (url: string, fetchOptions: any, { isPublicAPI = false, o
return handleStream(res, (str: string, isFirstMessage: boolean, moreInfo: IOnDataMoreInfo) => { return handleStream(res, (str: string, isFirstMessage: boolean, moreInfo: IOnDataMoreInfo) => {
if (moreInfo.errorMessage) { if (moreInfo.errorMessage) {
onError?.(moreInfo.errorMessage) onError?.(moreInfo.errorMessage)
console.log(111)
if (moreInfo.errorMessage !== 'AbortError: The user aborted a request.') if (moreInfo.errorMessage !== 'AbortError: The user aborted a request.')
Toast.notify({ type: 'error', message: moreInfo.errorMessage }) Toast.notify({ type: 'error', message: moreInfo.errorMessage })
return return
...@@ -350,7 +349,6 @@ export const ssePost = (url: string, fetchOptions: any, { isPublicAPI = false, o ...@@ -350,7 +349,6 @@ export const ssePost = (url: string, fetchOptions: any, { isPublicAPI = false, o
onData?.(str, isFirstMessage, moreInfo) onData?.(str, isFirstMessage, moreInfo)
}, onCompleted) }, onCompleted)
}).catch((e) => { }).catch((e) => {
console.log(222)
if (e.toString() !== 'AbortError: The user aborted a request.') if (e.toString() !== 'AbortError: The user aborted a request.')
Toast.notify({ type: 'error', message: e }) Toast.notify({ type: 'error', message: e })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment