vueElementUI_0">vue中使用ElementUI导航栏,点击第二次报错 加入一下相关代码 import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) // 解决重复点击导航路由报错 const originalPush = Router.prototype.push; Router.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err); }