diff --git a/src/components/404.vue b/src/components/404.vue new file mode 100644 index 00000000..a2151d6a --- /dev/null +++ b/src/components/404.vue @@ -0,0 +1,12 @@ + + + diff --git a/src/router/index.js b/src/router/index.js index cc1374e4..5cb4bcee 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,6 +2,7 @@ import Vue from 'vue' import Router from 'vue-router' import HomeComponent from '@/components/Home' +import NotFoundComponent from '@/components/404' // User Handling import LoginComponent from '@/components/user/Login' import RegisterComponent from '@/components/user/Register' @@ -53,6 +54,11 @@ export default new Router({ name: 'home', component: HomeComponent }, + { + path: '*', + name: '404', + component: NotFoundComponent, + }, { path: '/login', name: 'login',