|
@@ -2,10 +2,12 @@ import Vue from "vue";
|
|
|
import Router from "vue-router";
|
|
|
import Home from "./views/Home.vue";
|
|
|
import About from "./views/About.vue";
|
|
|
+import NotFoundComponent from "./views/NotFoundComponent.vue";
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
export default new Router({
|
|
|
+ mode: "history",
|
|
|
routes: [
|
|
|
{
|
|
|
path: "/",
|
|
@@ -16,6 +18,10 @@ export default new Router({
|
|
|
path: "/about",
|
|
|
name: "about",
|
|
|
component: About
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "*",
|
|
|
+ component: NotFoundComponent
|
|
|
}
|
|
|
]
|
|
|
});
|