redirect to first list

This commit is contained in:
WofWca 2023-03-25 11:57:38 +04:00
parent 90ef2b13a9
commit 80ba017a74
1 changed files with 5 additions and 0 deletions

View File

@ -84,6 +84,11 @@ const router = createRouter({
path: '/',
name: 'home',
component: HomeComponent,
// TODO_OFFLINE don't redirect when there's actually something useful on the home page
redirect: {
name: 'project.index',
params: { projectId: 1 },
},
},
{
path: '/:pathMatch(.*)*',