Fixed infinite loading
This commit is contained in:
parent
7b50b77267
commit
18f5e653fc
1 changed files with 4 additions and 2 deletions
|
@ -37,6 +37,7 @@ export default {
|
||||||
return this.search.length >= 3 ? 'sortScore' : this.sortBy
|
return this.search.length >= 3 ? 'sortScore' : this.sortBy
|
||||||
},
|
},
|
||||||
pagedSpells () {
|
pagedSpells () {
|
||||||
|
debugger
|
||||||
return new Query(this.filteredSpells)
|
return new Query(this.filteredSpells)
|
||||||
.paginate(1, this.loadedPage * 20)
|
.paginate(1, this.loadedPage * 20)
|
||||||
.results
|
.results
|
||||||
|
@ -49,8 +50,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadMore (index) {
|
loadMore (index, done) {
|
||||||
this.loadedPage += index
|
this.loadedPage += 1
|
||||||
|
done()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue