mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
Ładowanie danych nt pociągów i rozkładów jazdy z API Stacjownika
This commit is contained in:
+3
-2
@@ -30,8 +30,9 @@ const routes: Array<RouteRecordRaw> = [
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
scrollBehavior(to, from) {
|
||||
if (to.name == "SceneryView")
|
||||
scrollBehavior(to, from) {
|
||||
|
||||
if (to.name == "SceneryView" && from.name)
|
||||
return { el: `.app_main` };
|
||||
|
||||
if (from.name == "SceneryView" && to.name == "StationsView")
|
||||
|
||||
Reference in New Issue
Block a user