mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-29 20:44:05 +00:00
fix:进入动态路由下的二级页面菜单栏无法选中问题
This commit is contained in:
@@ -111,6 +111,8 @@ const Menus = ({
|
||||
|
||||
if (!defaultSelectedKeys) {
|
||||
defaultSelectedKeys = ['1']
|
||||
} else if(defaultSelectedKeys[0] === '-1') {
|
||||
defaultSelectedKeys = [defaultSelectedKeys[1].toString()[0]]
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user