Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在一个菜单没有分组并且不是隐藏的情况下,在刚进入页面的时,这个菜单是显示的,但是点击了任何一个分组,这个菜单都会隐藏,但是再次点击也不会出现,发现菜单遍历时:
{$key}
{$menu.title}
所以key是空的,所以js隐藏的时候不会显示了;想到解决方法,
1 放到后面,所以没的分组的菜单直接不显示
2 JS 左边菜单显示收起 ,只收起展开当前点击分组
我选择了第二种,
1 菜单的隐藏后台有字段控制,既然选择显示,就不应该没的分组而隐藏
2 点击任何一个分组隐藏其他分组,个人感觉本来就不合理;如果隐藏其他分组是防止菜单过多,看不到全部,那为什么进页面的时候就都展开
小问题,但作为一个开源产品,一起完善,不知道官方有没有好的想法