From 182445f68ca03beb95a90e57867f356fe155126b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 13 十一月 2021 21:14:23 +0800 Subject: [PATCH] 2021-11-13 --- src/menu/components/share/normalheader/index.jsx | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/menu/components/share/normalheader/index.jsx b/src/menu/components/share/normalheader/index.jsx index 2440a63..818b05b 100644 --- a/src/menu/components/share/normalheader/index.jsx +++ b/src/menu/components/share/normalheader/index.jsx @@ -12,7 +12,6 @@ class NormalHeader extends Component { static propTpyes = { - defaultshow: PropTypes.any, // 鏍囬涓庢悳绱㈡潯浠朵笉瀛樺湪鏃堕殣钘� hideSearch: PropTypes.any, // 闅愯棌鎼滅储鏉′欢 config: PropTypes.object, // 閰嶇疆淇℃伅 updateComponent: PropTypes.func // 閰嶇疆鏇存柊 @@ -62,7 +61,7 @@ } render() { - const { config, defaultshow, hideSearch } = this.props + const { config, hideSearch } = this.props const { appType } = this.state let title = config.plot ? config.plot.title : config.wrap.title @@ -72,10 +71,8 @@ title = ' ' } - if (defaultshow === 'hidden') { - if (!title && (!config.search || config.search.length === 0)) { - show = false - } + if (!title && (!config.search || config.search.length === 0)) { + show = false } let _style = resetStyle(config.headerStyle) -- Gitblit v1.8.0