classic-ui/app/router.scrollBehavior.js

10 lines
208 B
JavaScript
Raw Normal View History

const routerScrollBehavior = (to, from, savedPosition) => {
if (to.name === 'governance-id') {
return { x: 0, y: 0 }
}
return savedPosition || { x: 0, y: 0 }
}
export default routerScrollBehavior