Add 404 page
This commit is contained in:
parent
c458f902da
commit
a4acfb5ef2
2 changed files with 18 additions and 0 deletions
12
src/components/404.vue
Normal file
12
src/components/404.vue
Normal 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>
|
|
@ -2,6 +2,7 @@ import Vue from 'vue'
|
||||||
import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
|
|
||||||
import HomeComponent from '@/components/Home'
|
import HomeComponent from '@/components/Home'
|
||||||
|
import NotFoundComponent from '@/components/404'
|
||||||
// User Handling
|
// User Handling
|
||||||
import LoginComponent from '@/components/user/Login'
|
import LoginComponent from '@/components/user/Login'
|
||||||
import RegisterComponent from '@/components/user/Register'
|
import RegisterComponent from '@/components/user/Register'
|
||||||
|
@ -53,6 +54,11 @@ export default new Router({
|
||||||
name: 'home',
|
name: 'home',
|
||||||
component: HomeComponent
|
component: HomeComponent
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '*',
|
||||||
|
name: '404',
|
||||||
|
component: NotFoundComponent,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/login',
|
path: '/login',
|
||||||
name: 'login',
|
name: 'login',
|
||||||
|
|
Loading…
Reference in a new issue