From 7cd6587d43dfda47b043c775ea9e67ee4c1bbd08 Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Tue, 14 Apr 2020 14:09:55 +0800
Subject: [PATCH] 跳转问题

---
 src/components/common/NotifyList/index.jsx |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/components/common/NotifyList/index.jsx b/src/components/common/NotifyList/index.jsx
index a2e651a..86d7c72 100644
--- a/src/components/common/NotifyList/index.jsx
+++ b/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>
   }
 

--
Gitblit v1.8.0