Redirect to /main/all
This commit is contained in:
parent
ea6977cd4d
commit
f671adae37
1 changed files with 2 additions and 1 deletions
|
@ -30,8 +30,9 @@ export default (store) => {
|
||||||
{ path: '/main/:route',
|
{ path: '/main/:route',
|
||||||
redirect: to => {
|
redirect: to => {
|
||||||
const { params } = to
|
const { params } = to
|
||||||
|
const route = params.route ? params.route : 'all'
|
||||||
|
|
||||||
return { path: `/~/main/${params.route}` }
|
return { path: `/~/main/${route}` }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ path: '/tag/:tag',
|
{ path: '/tag/:tag',
|
||||||
|
|
Loading…
Reference in a new issue