vue.js框架 Error: Avoided redundant navigation to current location
1、ErrorCode:
2、原因:
ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题
3、解决办法(router --》index.js添加以下代码 ):
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => er
原创
2020-07-20 11:30:31 ·
330 阅读 ·
0 评论