forked from huge/frontEnd/hugeOA

Mr Ke
2020-04-14 75fa1bb87cf216dc4525d1a427924de464b03e80
src/components/common/NotifyList/index.jsx
@@ -27,18 +27,22 @@
    }).then(res => {
      console.log('res', res);
      this.setState({
        content: res.documentContent || ''
        content: res.documentTitle || ''
      })
    })
  }
  componentDidMount() { }
  onClick = () => {
    this.props.history.push({ pathname: "/index/workbench/announcement" });
  }
  renderDom = () => {
    let { content } = this.state;
    return <div className="notify-list-main-dom">
      <span className="notify-list-main-dom-msg">最新通知:{content}</span>
      <span className="notify-list-main-dom-fuc">[查看全部]</span>
      <span className="notify-list-main-dom-fuc" onClick={this.onClick}>[查看全部]</span>
    </div>
  }