Update timeline.vue

This commit is contained in:
tamaina 2018-04-15 23:50:00 +09:00 committed by GitHub
parent c9b26183f3
commit 5d90abc011

View file

@ -98,8 +98,7 @@ export default Vue.extend({
}); });
}, },
onNote(note) { onNote(note) {
if (this.isTop) this.notes.pop(); this.isTop = window.scrollY < 100;
this.notes.unshift(note);
}, },
onChangeFollowing() { onChangeFollowing() {
this.fetch(); this.fetch();