yangjie #22
|
|
@ -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 = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue