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

配置下级菜单为隐藏路由后,二级菜单无法点击,并且显示了三角符号 #4013

Closed
TankCoder opened this issue Aug 30, 2022 · 4 comments

Comments

@TankCoder
Copy link

TankCoder commented Aug 30, 2022

版本号:

3.4

前端版本:

vue2

问题描述:

配置【高级详情页】的下级菜单为 子菜单+路由菜单+隐藏路由 后,高级详情页菜单无法点击,并且显示了三角展开图标。(已设置权限)。

二级菜单为啥不能点击了。

截图&代码:

image
image

@TankCoder
Copy link
Author

TankCoder commented Aug 31, 2022

只要一个菜单有子菜单,那么他本身就不能被点击了?不论他的子菜单是不是隐藏的

就是这么设计的吗?你好,确认一下,我自己去改源码。。 @zhangdaiscott

@TankCoder
Copy link
Author

TankCoder commented Aug 31, 2022

目前的需求:要配置很多详情页面,并且不需要在左侧菜单中展示,仅做跳转使用。

但是使用官方示例配置后(将详情菜单设置为路由菜单+隐藏路由),无法使用/展示。

发现:

  • 如果添加的是三级菜单,将其设置为路由菜单+隐藏路由 ,通过URL的形式,无法直接访问到该菜单
  • 如果添加的是二级菜单,将其设置为路由菜单+隐藏路由 ,通过URL的形式,可以访问到该菜单 (但是这样设置菜单结构,对于操作授权时不方便。)

@zhangdaiscott
Copy link
Member

修复,下个版本发布

@lytlucky
Copy link

@zhangdaiscott @TankCoder 请问下这个问题需要修改那块代码,提交记录没看到

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

3 participants