Added not found page
This commit is contained in:
parent
41ba3104e0
commit
4e9729508f
@ -2,6 +2,7 @@ import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import Home from '../views/Home.vue'
|
||||
import About from '../views/About.vue'
|
||||
import NotFound from '../views/NotFound'
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
@ -18,6 +19,11 @@ const routes = [
|
||||
// this generates a separate chunk (about.[hash].js) for this route
|
||||
// which is lazy-loaded when the route is visited.
|
||||
component: About
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
name: '404',
|
||||
component: NotFound
|
||||
}
|
||||
]
|
||||
|
||||
|
6
src/views/NotFound.vue
Normal file
6
src/views/NotFound.vue
Normal file
@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<div id="not-found">
|
||||
<h1>Error 404</h1>
|
||||
<p>Not found</p>
|
||||
</div>
|
||||
</template>
|
Loading…
x
Reference in New Issue
Block a user