From 2db98acd7d2c36fe23756051c2c858ab33244572 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期二, 31 十二月 2024 10:25:35 +0800
Subject: [PATCH] 删除无关代码——关联查询; 整理代码

---
 src/components/chat/hooks/useScroll.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/components/chat/hooks/useScroll.ts b/src/components/chat/hooks/useScroll.ts
index 55138ad..c7f78b1 100644
--- a/src/components/chat/hooks/useScroll.ts
+++ b/src/components/chat/hooks/useScroll.ts
@@ -36,7 +36,7 @@
 	});
 
 	onUnmounted(() => {
-		chatListDom.value.removeEventListener('scrollend', checkIsBottom);
+		chatListDom.value?.removeEventListener('scrollend', checkIsBottom);
 	});
 
 	// emitter.on('amis.page.ready', debounceAmisScroll);

--
Gitblit v1.9.3