Add 404 page

This commit is contained in:
kolaente 2020-03-02 20:30:49 +01:00
parent c458f902da
commit a4acfb5ef2
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 18 additions and 0 deletions

12
src/components/404.vue Normal file
View file

@ -0,0 +1,12 @@
<template>
<div class="content has-text-centered">
<h1>Not found</h1>
<p>The page you requested does not exist.</p>
</div>
</template>
<script>
export default {
name: '404'
}
</script>

View file

@ -2,6 +2,7 @@ import Vue from 'vue'
import Router from 'vue-router'
import HomeComponent from '@/components/Home'
import NotFoundComponent from '@/components/404'
// User Handling
import LoginComponent from '@/components/user/Login'
import RegisterComponent from '@/components/user/Register'
@ -53,6 +54,11 @@ export default new Router({
name: 'home',
component: HomeComponent
},
{
path: '*',
name: '404',
component: NotFoundComponent,
},
{
path: '/login',
name: 'login',