Fixed #2: now redirect to previous page after login

This commit is contained in:
Eliot Berriot 2017-12-15 22:23:56 +01:00
parent 6274031f21
commit 80117212b8
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 8 additions and 3 deletions

View file

@ -30,7 +30,8 @@ export default new Router({
{
path: '/login',
name: 'login',
component: Login
component: Login,
props: (route) => ({ next: route.query.next || '/library' })
},
{
path: '/logout',