vue 跳转同一页面报错 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation
在 router/index.js 中 添加如下代码
Vue.use(Router);
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}