Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] 菜单对于path前缀相同的选项高亮异常 #7456

Closed
kiwikaki opened this issue Oct 13, 2020 · 0 comments · Fixed by umijs/route-utils#6
Closed

🐛[BUG] 菜单对于path前缀相同的选项高亮异常 #7456

kiwikaki opened this issue Oct 13, 2020 · 0 comments · Fixed by umijs/route-utils#6
Labels

Comments

@kiwikaki
Copy link

kiwikaki commented Oct 13, 2020

🐛 bug 描述

菜单对于path前缀相同的选项高亮异常, 例如一个为/welcome另一个为/welcome2 ,点击第二个菜单选项时,两个会全部高亮

📷 复现步骤

1.在config.js 添加如下配置:
{
path: '/welcome',
name: 'welcome',
icon: 'smile',
component: './Welcome',
},
{
path: '/welcome2',
name: 'welcome2',
icon: 'smile',
component: './Welcome2',
},
2.pages 里创建相应Welcome.jsx 及Welcome2.jsx
3.启动项目点击welcome2 菜单即可复现

© 版本信息

  • Ant Design Pro 版本: [4.2.2]
  • umi 版本 [3.2.23]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant