From 11ce260ff137e5746cee7c394dd999b936752d2d Mon Sep 17 00:00:00 2001 From: miaojiale <1123971748@qq.com> Date: Thu, 9 Feb 2023 17:35:34 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A7=A3=E5=86=B3=E8=B7=AF=E7=94=B1=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91=E6=8A=A5=E9=94=99=202.=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=8E=BB=E9=99=A4=E5=9C=B0=E5=9D=80=E6=A0=8F?= =?UTF-8?q?=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 5 ++++- src/views/screening/index.vue | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 748a8cb..c6f3bdc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -290,5 +290,8 @@ export function resetRouter() { routes: constantRoutes, }).matcher } - +const originalPush = VueRouter.prototype.push +VueRouter.prototype.push = function push(location) { + return originalPush.call(this, location).catch((err) => err) +} export default router diff --git a/src/views/screening/index.vue b/src/views/screening/index.vue index 80dfaf7..58440ba 100644 --- a/src/views/screening/index.vue +++ b/src/views/screening/index.vue @@ -25,9 +25,7 @@