mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-31 15:09:32 +00:00
client: router: always scroll to the top
This commit is contained in:
parent
b75c57f130
commit
b10751e874
1 changed files with 5 additions and 0 deletions
|
|
@ -27,6 +27,11 @@ export default new VueRouter({
|
|||
mode: 'history',
|
||||
base: process.env.NODE_ENV === 'production' ? '/new-app' : __dirname, // eslint-disable-line no-process-env
|
||||
linkActiveClass: 'active',
|
||||
// When navigating to another route always scroll to the top
|
||||
// To customize the behavior see https://router.vuejs.org/en/advanced/scroll-behavior.html
|
||||
scrollBehavior () {
|
||||
return { x: 0, y: 0 };
|
||||
},
|
||||
routes: [
|
||||
{ name: 'tasks', path: '/', component: UserTasks },
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue