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(() => {
const chatBigWindowView = document.getElementById('chatBigWindowView') as HTMLElement;
if (chatBigWindowView) {
chatBigWindowView.scrollTop = chatBigWindowView.scrollHeight;
const chatSmallWindowView = document.getElementById('chatSmallWindowView') as HTMLElement;
if (chatSmallWindowView) {
chatSmallWindowView.scrollTop = chatSmallWindowView.scrollHeight;
}
}, [chatLists]);
const removeItemByIndex = () => {