当在菜单中重复点击跳转统一地址时报错:
解决方案:
在index.js或者是route.js(定义路由的js文件中) 在Vue.use(VueRouter)后面加上这段代码
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
解决重复点击菜单报错问题代码演示https://blog.csdn.net/qq_29252021/article/details/109615753