refactor(ideContainer): 优化菜单选中逻辑和 tabs 关闭逻辑
- 修改菜单选中逻辑:使用 parentKey 或 key 设置 currentKey,确保正确同步选中状态 - 注释掉 tabs 关闭时重置 selected 状态的代码,避免不必要的状态变化 - 在侧边栏中添加 selectedKeys,确保树节点选中状态与菜单同步 - 使用 useEffect 在 selectedKey 变化时更新主菜单选中状态master
parent
c72382140a
commit
b84e15f1cf
Loading…
Reference in New Issue