You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{ProLayout}from'@ant-design/pro-layout';import{Link,Outlet,useAppData,useLocation}from'umi';exportdefaultfunctionLayout(){const{ clientRoutes }=useAppData();constlocation=useLocation();return(<ProLayoutroute={clientRoutes[0]}location={location}title="Umi x Ant Design"menuItemRender={(menuItemProps,defaultDom)=>{if(menuItemProps.isUrl||menuItemProps.children){returndefaultDom;}if(menuItemProps.path&&location.pathname!==menuItemProps.path){return(<Linkto={menuItemProps.path}target={menuItemProps.target}>{defaultDom}</Link>);}returndefaultDom;}}><Outlet/></ProLayout>);}
🧐 问题描述
ProLayout的route配置,二级菜单下的icon属性不生效,官方Demo里也能看到问题
💻 示例代码
🚑 其他信息
The text was updated successfully, but these errors were encountered: