vue-cli 出现导航重复解决方法

 

 

 

在你的路由文件里加上即可

const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}

 

 

posted @ 2021-10-25 00:15  凯宾斯基  阅读(259)  评论(0)    收藏  举报