This commit is contained in:
yj 2024-10-22 12:29:14 +08:00
parent 8e65fdf520
commit 4032056620
1 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,9 @@ const ChatSmallWindow: React.FC = () => {
} }
}, []); }, []);
useEffect(() => { useEffect(() => {
const chatBigWindowView = document.getElementById('chatBigWindowView') as HTMLElement; const chatSmallWindowView = document.getElementById('chatSmallWindowView') as HTMLElement;
if (chatBigWindowView) { if (chatSmallWindowView) {
chatBigWindowView.scrollTop = chatBigWindowView.scrollHeight; chatSmallWindowView.scrollTop = chatSmallWindowView.scrollHeight;
} }
}, [chatLists]); }, [chatLists]);
const removeItemByIndex = () => { const removeItemByIndex = () => {