diff --git a/packages/menu/src/menu.vue b/packages/menu/src/menu.vue index fb4ca24a670..645e5ac9527 100644 --- a/packages/menu/src/menu.vue +++ b/packages/menu/src/menu.vue @@ -271,7 +271,12 @@ if (this.router && hasIndex) { this.routeToItem(item, (error) => { this.activeIndex = oldActiveIndex; - if (error) console.error(error); + if (error) { + // vue-router 3.1.0+ push/replace cause NavigationDuplicated error + // https://github.com/ElemeFE/element/issues/17044 + if (error.name === 'NavigationDuplicated') return + console.error(error) + } }); } },