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

7561
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,8 @@
"test:unit": "vue-cli-service test:unit" "test:unit": "vue-cli-service test:unit"
}, },
"dependencies": { "dependencies": {
"@vue/cli": "^3.4.1",
"bootstrap-vue": "^2.0.0-rc.13",
"vue": "^2.6.6", "vue": "^2.6.6",
"vue-class-component": "^6.0.0", "vue-class-component": "^6.0.0",
"vue-property-decorator": "^7.0.0", "vue-property-decorator": "^7.0.0",

View File

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