1、導航菜單重復點擊報錯:
//解決導航菜單二次點擊報錯。 const originalPush = Router.prototype.push Router.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) }
2、導航菜單選中背景色控制:
.el-menu-item.is-active{ background-color: #ECF5FF; }