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

🧐[问题 | question] #10877

Closed
ZhangXY-Magic opened this issue Aug 5, 2023 · 1 comment
Closed

🧐[问题 | question] #10877

ZhangXY-Magic opened this issue Aug 5, 2023 · 1 comment

Comments

@ZhangXY-Magic
Copy link

🧐 问题描述 | Problem description

请问在ProLayout中的RunTimeLayoutConfig里通过传入menuProps的items属性来控制菜单的渲染后,如何同时绑定router处理路由跳转。
目前我想到的就是在menuProps里再传入onClick方法遍历route匹配menu的key 然后用history.push来操作,请问有更优雅的办法么

💻 示例代码 | Sample code

🚑 其他信息 | Other information

OS:

Node:

浏览器 | browser:

@github-actions
Copy link

github-actions bot commented Aug 5, 2023

当前 Issue 未检测到标题,请规范填写,谢谢!

The title of the current issue is not detected, please fill in according to the specifications, thank you!

@github-actions github-actions bot closed this as completed Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant