fix: 清理前端异步请求生命周期
- 页面卸载和弹窗关闭时终止 SSE - 为版本检查增加超时、中止与重复请求保护
This commit is contained in:
@@ -578,6 +578,9 @@ watch(
|
||||
{ flush: 'post' },
|
||||
);
|
||||
onBeforeUnmount(() => {
|
||||
if (sending.value) {
|
||||
stopSse();
|
||||
}
|
||||
if (bubbleListScrollElement.value) {
|
||||
bubbleListScrollElement.value.removeEventListener(
|
||||
'scroll',
|
||||
|
||||
Reference in New Issue
Block a user