This commit is contained in:
parent
8e65fdf520
commit
4032056620
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue