private scrollToBottom() { this.$nextTick(() => { const container = this.$el.querySelector(".chatDialog-wrap"); // @ts-ignore container.scrollTop = container.scrollHeight; }); }
private mounted() { this.scrollToBottom(); } private updated() { this.scrollToBottom(); }