@@ -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' }
|
||||||
|
|||||||
Reference in New Issue
Block a user