fix scroll
Main daploy / deploy (push) Successful in 40s

This commit is contained in:
2024-11-27 11:10:42 +02:00
parent 5bf7946c34
commit 056247a414
+1 -1
View File
@@ -94,7 +94,7 @@ const router = createRouter({
history: createWebHistory(), history: createWebHistory(),
routes, routes,
scrollBehavior(to, from, savedPosition) { scrollBehavior(to, from, savedPosition) {
if (savedPosition) { if (savedPosition && to.name !== ROUTE_NAMES.CREATE) {
return savedPosition return savedPosition
} else { } else {
return { top: 0, behavior: 'smooth' } return { top: 0, behavior: 'smooth' }