|
|
@ -131,6 +131,8 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => { |
|
|
<ProLayout |
|
|
<ProLayout |
|
|
logo={logo} |
|
|
logo={logo} |
|
|
formatMessage={formatMessage} |
|
|
formatMessage={formatMessage} |
|
|
|
|
|
{...props} |
|
|
|
|
|
{...settings} |
|
|
onCollapse={handleMenuCollapse} |
|
|
onCollapse={handleMenuCollapse} |
|
|
onMenuHeaderClick={() => history.push('/')} |
|
|
onMenuHeaderClick={() => history.push('/')} |
|
|
menuItemRender={(menuItemProps, defaultDom) => { |
|
|
menuItemRender={(menuItemProps, defaultDom) => { |
|
|
@ -161,8 +163,6 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => { |
|
|
menuDataRef.current = menuData || []; |
|
|
menuDataRef.current = menuData || []; |
|
|
return menuData || []; |
|
|
return menuData || []; |
|
|
}} |
|
|
}} |
|
|
{...props} |
|
|
|
|
|
{...settings} |
|
|
|
|
|
> |
|
|
> |
|
|
<Authorized authority={authorized!.authority} noMatch={noMatch}> |
|
|
<Authorized authority={authorized!.authority} noMatch={noMatch}> |
|
|
{children} |
|
|
{children} |
|
|
|