From 5b875e311a534e7a7ba4a842adc3bcf3c679a9ff Mon Sep 17 00:00:00 2001 From: lVAL Date: Fri, 20 Nov 2020 14:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=BB=E9=A1=B5=20?= =?UTF-8?q?=E5=8A=A0=E8=BD=BDpdf=E6=97=B6=E7=9A=84loading=20=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 5 ++++ src/views/About.vue | 9 +++++++- src/views/Layout/eHeader/eMenuItem.vue | 21 ++++++++++------- src/views/Layout/eHeader/eMenuList.vue | 29 +++++++++++++++++++---- src/views/PreviewPdf/index.vue | 32 ++++++++++++++++---------- src/views/Relation.vue | 4 ++-- 6 files changed, 72 insertions(+), 28 deletions(-) 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 @@