重复点击菜单报错 NavigationDuplicated: Avoided redundant navigation to current location: xxxxx
解决办法:
路由文件.js最下边加入这段代码
//NavigationDuplicated: Avoided redundant navigation to current location 解决重复点击路由报错 // 重写路由push方法 const originalPush = Router.prototype.push Router.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) };