mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
feature: nawigacja URL w widoku scenerii
This commit is contained in:
+2
-1
@@ -61,7 +61,8 @@ const routes: Array<RouteRecordRaw> = [
|
||||
|
||||
const router = createRouter({
|
||||
scrollBehavior(to, from, savedPosition) {
|
||||
if (to.name == 'SceneryView' && from.name) return { el: `.app_main` };
|
||||
if (to.name == 'SceneryView' && from.name && from.query['view'] === undefined)
|
||||
return { el: `.app_main` };
|
||||
|
||||
if (savedPosition) return savedPosition;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user