king
2021-06-10 b656f58958a5ca54e710b980b98f4b542ff6369f
src/menu/components/share/normalheader/index.jsx
@@ -18,6 +18,10 @@
    updateComponent: PropTypes.func  // 配置更新
  }
  state = {
    appType: sessionStorage.getItem('appType')
  }
  componentDidMount () {
    MKEmitter.addListener('submitStyle', this.getStyle)
  }
@@ -54,9 +58,15 @@
  render() {
    const { config, defaultshow, hideSearch } = this.props
    const { appType } = this.state
    let title = config.plot ? config.plot.title : config.wrap.title
    let show = true
    if (!title && appType === 'mob' && config.type === 'card' && config.subtype === 'datacard' && config.action && config.action.length) {
      title = ' '
    }
    if (defaultshow === 'hidden') {
      if (!title && (!config.search || config.search.length === 0)) {
        show = false