diff --git a/ant-design-vue-jeecg/src/router/index.js b/ant-design-vue-jeecg/src/router/index.js index d65366aae742a6c0abadd17cda123bed44f5acfc..d6a2a292867d769d45c96cbb008a304c6975e828 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)