From 5e2eba86e7ec2897aab77b0ac472058f8ec7a9ed Mon Sep 17 00:00:00 2001 From: zhangdaihao Date: Sat, 19 Oct 2019 16:03:45 +0800 Subject: [PATCH] =?UTF-8?q?JeecgBoot=202.1.1=20=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=99=A8AI=E7=89=88=E6=9C=AC=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/router/index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ant-design-vue-jeecg/src/router/index.js b/ant-design-vue-jeecg/src/router/index.js index d65366aa..d6a2a292 100644 --- a/ant-design-vue-jeecg/src/router/index.js +++ b/ant-design-vue-jeecg/src/router/index.js @@ -2,10 +2,15 @@ import Vue from 'vue' import Router from 'vue-router' import { constantRouterMap } from '@/config/router.config' -const originalPush = Router.prototype.push -Router.prototype.push = function push(location) { - return originalPush.call(this, location).catch(err => err) +//update-begin-author:taoyan date:20191011 for:TASK #3214 【优化】访问online功能测试 浏览器控制台抛出异常 +try { + const originalPush = Router.prototype.push + Router.prototype.push = function push(location) { + return originalPush.call(this, location).catch(err => err) + } +} catch (e) { } +//update-end-author:taoyan date:20191011 for:TASK #3214 【优化】访问online功能测试 浏览器控制台抛出异常 Vue.use(Router) -- GitLab