bug fixed

This commit is contained in:
bob
2025-05-08 12:03:08 +08:00
parent 92e73fe094
commit d9cc186fc1

View File

@@ -850,7 +850,7 @@ const updateScroll = () => {
const msgListReachBottom = (behavior = 'instant') => {
const scrollToBottom = () => {
setTimeout(() => {
msgListDiv.value.scrollTo({
msgListDiv.value?.scrollTo({
top: msgListDiv.value.scrollHeight,
behavior: behavior
})