This commit is contained in:
syuilo 2018-02-23 05:06:47 +09:00
parent 33479ed54b
commit 6d1e727cac

View File

@ -34,9 +34,7 @@ export default Vue.extend({
} }
}, },
mounted() { mounted() {
this.$nextTick(() => {
this.zap(); this.zap();
});
}, },
beforeDestroy() { beforeDestroy() {
this.disconnect(); this.disconnect();
@ -51,7 +49,9 @@ export default Vue.extend({
this.posts = posts; this.posts = posts;
this.fetching = false; this.fetching = false;
this.$nextTick(() => {
this.scrollToBottom(); this.scrollToBottom();
});
this.disconnect(); this.disconnect();
this.connection = new ChannelStream(this.channel.id); this.connection = new ChannelStream(this.channel.id);