Commit 9a7e7ca7 authored by TnWah's avatar TnWah Committed by 陈小聪

PageHeaderWrapper组件bug (#3938)

* PageHeaderWrapper组件内PageHeader部分显示判断修改为title存在即可

* 删除title/content判断
parent e245efe0
...@@ -49,7 +49,6 @@ const PageHeaderWrapper = ({ ...@@ -49,7 +49,6 @@ const PageHeaderWrapper = ({
return ( return (
<div style={{ margin: '-24px -24px 0' }} className={classNames(classNames, styles.main)}> <div style={{ margin: '-24px -24px 0' }} className={classNames(classNames, styles.main)}>
{top} {top}
{title && content && (
<MenuContext.Consumer> <MenuContext.Consumer>
{value => { {value => {
return ( return (
...@@ -89,7 +88,6 @@ const PageHeaderWrapper = ({ ...@@ -89,7 +88,6 @@ const PageHeaderWrapper = ({
); );
}} }}
</MenuContext.Consumer> </MenuContext.Consumer>
)}
{children ? ( {children ? (
<div className={styles['children-content']}> <div className={styles['children-content']}>
<GridContent>{children}</GridContent> <GridContent>{children}</GridContent>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment