From 7319726fb52930b805a730d53ba1884cb40ca7ed Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 11 Nov 2020 15:57:22 +0100 Subject: [PATCH] fix push loading more stations --- src/components/Main.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Main.vue b/src/components/Main.vue index f752290..3521e17 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -228,7 +228,8 @@ export default { scroll() { window.onscroll = () => { if ((window.innerHeight + window.scrollY) >= document.body.scrollHeight) { - this.loadStations() + const route = this.$route + this.loadStations(route.name) } } },