Verschiedenes seit Freitag #47

Merged
weeman merged 4 commits from freitag into main 2021-10-04 17:42:10 +02:00
Showing only changes of commit 2d700c77dc - Show all commits

View File

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