侧边栏选中效果修复
This commit is contained in:
@@ -39,7 +39,7 @@ const generateMenuItems = (routes, menuKeys = [], parentPath = "") => {
|
||||
const icon = route.icon && <ColorIcon icon={getAntIcon(route.icon)} />;
|
||||
|
||||
const menuItem = {
|
||||
key: route.key, // 使用 key 而不是 fullPath
|
||||
key: fullPath,
|
||||
icon,
|
||||
label: route.name,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user