From 80ba017a74d2e8959ba12737002c212ade134694 Mon Sep 17 00:00:00 2001 From: WofWca Date: Sat, 25 Mar 2023 11:57:38 +0400 Subject: [PATCH] redirect to first list --- src/router/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index 500f9f09dc..1c2f1017c1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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(.*)*',