logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue报错“NavigationDuplicat: Avoided redundant navigation to current location”解决方法

方法1查看自己的vue-router版本,如果在在3.0版本以上,将其改为3.0版本。方法2修改push源码,在router下的index.js文件中添加下列代码即可。// 解决vue-router在3.0版本以上重复报错问题const originalPush = VueRouter.prototype.pushVueRouter.prototype.push = function push(l

到底了