Verschiedenes seit Freitag #47

Merged
weeman merged 4 commits from freitag into main 2021-10-04 17:42:10 +02:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 2d700c77dc - Show all commits

View File

@ -46,7 +46,12 @@ const routes = [
{
path: '/',
name: 'Index',
component: Index
component: Index,
beforeEnter: (_to, _from, next) => {
if (store.state.token) {
next({name: 'Search'})
}
}
},
]