解决vue-router报NavigationDuplicated: Avoided redundant navigation to current location: “/login“ 的问题
一、普遍问题解决方法import Router from 'vue-router';Vue.use(Router);// 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题const originalPush = Router.prototype.pushRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch(er..
原创
2021-03-05 10:16:53 ·
4309 阅读 ·
3 评论