mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-24 10:31:09 +08:00
fix: 搜索接口后端关闭连接时会触发 error 事件,前端需要手动调用 close 不再自动重连
This commit is contained in:
@@ -27,6 +27,8 @@ export const apiSearch = {
|
||||
|
||||
eventSource.onerror = ev => {
|
||||
console.error('[/search/bangumi] Server Error |', { keyword }, 'error:', ev)
|
||||
// 目前后端搜索完成关闭连接时会触发 error 事件,前端手动调用 close 不再自动重连
|
||||
eventSource.close();
|
||||
};
|
||||
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user