added NotFound vue
This commit is contained in:
7561
package-lock.json
generated
7561
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,6 +9,8 @@
|
||||
"test:unit": "vue-cli-service test:unit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/cli": "^3.4.1",
|
||||
"bootstrap-vue": "^2.0.0-rc.13",
|
||||
"vue": "^2.6.6",
|
||||
"vue-class-component": "^6.0.0",
|
||||
"vue-property-decorator": "^7.0.0",
|
||||
|
||||
@@ -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
5
src/views/NotFound.vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<p>404 - Not Found</p>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user