-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Bug: 混合垂直布局下,开启自动激活子菜单路由跳转异常 #7734
Copy link
Copy link
Open
Labels
Description
Version
Vben Admin V5
Describe the bug?
在混合垂直布局中开启“自动激活子菜单”时,访问某个二级菜单下非第一个的路由,页面会先正确加载该路由,随后立即自动跳转到当前二级菜单下的第一个子菜单。
仅当访问非首个子菜单时复现
通过地址栏输入路由或代码跳转(如 router.push)均会出现(官网演示版本可复现)
Reproduction
进入混合垂直布局,开启“自动激活子菜单”选项
在地址栏输入一个二级菜单下的非第一个子菜单的路由路径(如 /parent/child2)
或通过代码进行路由跳转到该路径
观察页面:会短暂进入目标路由,随后立即重定向到当前二级菜单的第一个子菜单(如 /parent/child1)
System Info
/Relevant log output
Validations
- Read the docs
- Ensure the code is up to date. (Some issues have been fixed in the latest version)
- I have searched the existing issues and checked that my issue does not duplicate any existing issues.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable