Handle errors better

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-10-13 13:56:24 +02:00
parent 57f0b5dad1
commit 33e51a05ec
13 changed files with 214 additions and 78 deletions

View File

@@ -74,11 +74,15 @@ const router = new Router({
meta: { requiredAuth: false },
},
{
path: '*',
path: '/404',
name: RouteName.PAGE_NOT_FOUND,
component: PageNotFound,
meta: { requiredAuth: false },
},
{
path: '*',
redirect: { name: RouteName.PAGE_NOT_FOUND },
},
],
});