Merge pull request 'feature/v1.3_主agent_rxd' (#39) from feature/v1.3_主agent_rxd into main

Reviewed-on: ai-team/lingji-work-fe#39
This commit is contained in:
2025-09-05 05:55:46 +00:00

View File

@ -70,15 +70,14 @@ export default async (config: SSEConfig, url: string = DEFAULT_SSE_URL): Promise
}
},
onerror(error: Error) {
// console.error('SSE error:', error);
// 请求失败时主动关闭SSE连接
abortController.abort();
handleError?.(error);
},
onclose() {
// console.log('SSE connection closed');
handleClose?.();
},
async onopen(response: Response) {
// console.log('onopen', response);
handleOpen?.(response);
},
});