关于vue-router同一个路由地址点击报错 如图,控制台报错 看了网上的解答后,算是解决了 ##只需在路由js里面使用Vue.use(Router)后写即可 Vue.use(Router) const originalPush=Router.prototype.push Router.prototype.push=function push(location){ return originalPush.call(this,location).catch(err=>err) }