Searching resets infinite scroll
This commit is contained in:
parent
90a6824e37
commit
b2a43cc946
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ export default {
|
||||||
console.log('load more!', index)
|
console.log('load more!', index)
|
||||||
this.loadedPage += index
|
this.loadedPage += index
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
search () {
|
||||||
|
this.loadedPage = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue