mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2026-05-18 05:07:56 +00:00
消息框概率性不能触底,用setTimeout后观察效果
This commit is contained in:
@@ -588,14 +588,13 @@ const onLoadMore = async () => {
|
||||
* @param behavior smooth 平滑的, instant 立即
|
||||
*/
|
||||
const msgListReachBottom = async (behavior = 'smooth') => {
|
||||
await nextTick() // 经测试,在未读消息的session页面刷新时,不能到达底部,需要再加一个nextTick
|
||||
nextTick(() => {
|
||||
setTimeout(() => {
|
||||
msgListDiv.value?.scrollTo({
|
||||
top: msgListDiv.value.scrollHeight,
|
||||
behavior: behavior
|
||||
})
|
||||
newMsgTips.value.isShowBottomTips = false
|
||||
})
|
||||
}, 0)
|
||||
}
|
||||
|
||||
const onReturnBottom = () => {
|
||||
|
||||
Reference in New Issue
Block a user