classic-ui/app/router.scrollBehavior.js
2022-08-05 17:50:33 +10:00

10 lines
208 B
JavaScript

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