Client - add 404 error page

This commit is contained in:
Sam
2021-08-07 14:28:48 +02:00
parent ef6649a5dc
commit 0876373609
11 changed files with 139 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Dashboard from '@/views/DashBoard.vue'
import NotFound from '@/views/NotFound.vue'
const routes: Array<RouteRecordRaw> = [
{
@ -7,6 +8,7 @@ const routes: Array<RouteRecordRaw> = [
name: 'Dashboard',
component: Dashboard,
},
{ path: '/:pathMatch(.*)*', name: 'not-found', component: NotFound },
]
const router = createRouter({