fixed bug

This commit is contained in:
supertiger1234 2019-08-19 10:42:52 +01:00
parent d5dbd19488
commit 7ba69b704f

View file

@ -149,9 +149,9 @@ export default {
const scrollHeight = msgLogs.scrollHeight;
this.unloadBottomMessages();
this.$set(this.loadMoreBottom, 'show', true);
this.$nextTick(_ => {
this.$set(this.loadMoreBottom, 'show', true);
msgLogs.scrollTop = msgLogs.scrollHeight - scrollHeight;
if (this.loadMoreTop.show)
this.loadMoreMessages();