Redirect to /main/all

This commit is contained in:
Maxim Filippov 2018-12-17 03:01:24 +03:00
parent ea6977cd4d
commit f671adae37

View file

@ -30,8 +30,9 @@ export default (store) => {
{ path: '/main/:route',
redirect: to => {
const { params } = to
const route = params.route ? params.route : 'all'
return { path: `/~/main/${params.route}` }
return { path: `/~/main/${route}` }
}
},
{ path: '/tag/:tag',