diff --git a/src/router/index.js b/src/router/index.js index 6d3fa39..92b4438 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,6 +5,11 @@ import Home from "../views/Home/index.vue"; Vue.use(VueRouter); +const originalPush = VueRouter.prototype.push; +VueRouter.prototype.push = function push(location) { + return originalPush.call(this, location).catch(err => err); +}; + const routes = [ { path: "/", diff --git a/src/views/About.vue b/src/views/About.vue index c1ecc5e..6974a15 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -14,7 +14,14 @@
diff --git a/src/views/Layout/eHeader/eMenuItem.vue b/src/views/Layout/eHeader/eMenuItem.vue index abeaba6..37d367f 100644 --- a/src/views/Layout/eHeader/eMenuItem.vue +++ b/src/views/Layout/eHeader/eMenuItem.vue @@ -1,11 +1,12 @@