解決:
router 文件下 index.js 中添加下面代碼即可
// 解決ElementUI導航欄中的vue-router在3.0版本以上重復點菜單報錯問題 const originalPush = Router.prototype.push Router.prototype.push = function push (location) { return originalPush.call(this, location).catch(err => err) }


以上是點擊退出及登錄以后出現的錯誤。
參考:https://blog.csdn.net/weixin_44704285/article/details/107687115
