首页 > 其他 > 详细

解决 Avoided redundant navigation to current location: "/"

时间:2021-02-16 23:26:34      阅读:923      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

 

解决方法

打开你router目录下的index.js文件,复制下面代码,添加到最下方就可以了。

const originalPush = VueRouter.prototype.push
   VueRouter.prototype.push = function push(location) {
   return originalPush.call(this, location).catch(err => err)
}
VueRouter 是你引入 vue-router 

解决 Avoided redundant navigation to current location: "/"

原文:https://www.cnblogs.com/maxiag/p/14407356.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!