问题描述:
vue重复点击菜单的时候报错
Uncaught (in promise) NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicat
处理方式
在main.js加入以下代码,再次点击就不报错了
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}