watch: {
chatList() {
this.$nextTick(() => {
var h = this.$refs.ul.offsetHeight;
this.$refs.chatList.scrollTop = h;
})
}
},
watch: {
chatList() {
this.$nextTick(() => {
var h = this.$refs.ul.offsetHeight;
this.$refs.chatList.scrollTop = h;
})
}
},
本文标题:聊天列表自动滚动到最下面
本文链接:https://www.haomeiwen.com/subject/tnzucltx.html
网友评论