scrollToBottom: function () { this.$nextTick(() => { var container = this.$el.querySelector("#new_message"); container.scrollTop = container.scrollHeight; });}调用此方法即可