Improve warp

This commit is contained in:
syuilo
2019-04-18 22:00:11 +09:00
parent 8aaab195c6
commit fda8cf77ed
7 changed files with 47 additions and 7 deletions

View File

@ -124,7 +124,7 @@ export default Vue.extend({
},
fetchMore() {
if (!this.more || this.moreFetching) return;
if (!this.more || this.moreFetching || this.notes.length === 0) return;
this.moreFetching = true;
this.makePromise(this.notes[this.notes.length - 1].id).then(x => {
this.notes = this.notes.concat(x.notes);