Vue 路由重复跳转报错(Avoided redundant navigation to current location: 。。。)最佳解决方案,一次执行,不重复仿写自身
router/index.js上// const originalPush = Router.prototype.pushRouter.prototype.push = function push (location, onComplete, onAbort) { let $that = this if (!onComplete && !onAbort && typeof Promise !== 'undefined') { return new Prom
原创
2020-09-05 15:36:25 ·
318 阅读 ·
0 评论