mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: add skipNotify option to handle error notifications in SSE stream
This commit is contained in:
parent
5393e3ddd8
commit
2137af619d
@ -54,6 +54,7 @@ export const startMsgSSEStreamWithRetry: () => () => void = () => {
|
|||||||
},
|
},
|
||||||
responseType: 'stream',
|
responseType: 'stream',
|
||||||
adapter: 'fetch',
|
adapter: 'fetch',
|
||||||
|
skipNotify: (error) => (!error || !error.message ? true : false),
|
||||||
});
|
});
|
||||||
if (!res?.data) return;
|
if (!res?.data) return;
|
||||||
const stream = res.data;
|
const stream = res.data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user