ElemeFE / ElemeFE/element

[bug report] navmenu navigation menu El menu parameter router property jumps to the same route to report an error

Open
#18,096 5 comments 2 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.12.0

### OS/Browsers version
Win10/chrome

### Vue version
2.5.20

### Reproduction Link
https://codepen.io/pen/define/

### Steps to reproduce
NavMenu导航菜单el-menu参数router属性跳转到相同路由报错,路由可以正常跳转,但在当前路由下再次点击相同路由时,浏览器会报错,效果正常,浏览器报错内容为:Navigating to current location ("当前路径") is not allowed
使用router方式无法进行catch方式的捕获

### What is Expected?
期待修复浏览器会报错的情况

### What is actually happening?
待解决

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.