fix push loading more stations
This commit is contained in:
parent
bfc0f8d137
commit
7319726fb5
@ -228,7 +228,8 @@ export default {
|
|||||||
scroll() {
|
scroll() {
|
||||||
window.onscroll = () => {
|
window.onscroll = () => {
|
||||||
if ((window.innerHeight + window.scrollY) >= document.body.scrollHeight) {
|
if ((window.innerHeight + window.scrollY) >= document.body.scrollHeight) {
|
||||||
this.loadStations()
|
const route = this.$route
|
||||||
|
this.loadStations(route.name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user