added NotFound vue

This commit is contained in:
2019-03-07 09:56:17 +01:00
parent 62926ca086
commit 48e8759c31
4 changed files with 4780 additions and 2794 deletions

View File

@@ -1,6 +1,7 @@
import Vue from 'vue';
import Router from 'vue-router';
import Home from './views/Home.vue';
import NotFound from './views/NotFound.vue';
Vue.use(Router);
@@ -21,5 +22,10 @@ export default new Router({
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ './views/About.vue'),
},
{
path: '*',
name: 'notFound',
component: NotFound,
}
],
});

5
src/views/NotFound.vue Normal file
View File

@@ -0,0 +1,5 @@
<template>
<div>
<p>404 - Not Found</p>
</div>
</template>