From 5519a3fbaf3e32244641fe9c7d6fe35333fb951e Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Wed, 06 May 2020 10:48:56 +0800
Subject: [PATCH] 修通知公告详情样式

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

diff --git a/src/components/common/NotifyList/index.jsx b/src/components/common/NotifyList/index.jsx
index 665d4d0..1b707bc 100644
--- a/src/components/common/NotifyList/index.jsx
+++ b/src/components/common/NotifyList/index.jsx
@@ -25,10 +25,11 @@
     fetch({
       url: `api/document/getNewNotice`
     }).then(res => {
-      console.log('res', res);
-      this.setState({
-        content: res.documentContent || ''
-      })
+      if( res ) {
+        this.setState({
+          content: res.documentTitle || ''
+        })
+      }
     })
   }
 
@@ -41,7 +42,7 @@
   renderDom = () => {
     let { content } = this.state;
     return <div className="notify-list-main-dom">
-      <span className="notify-list-main-dom-msg">最新通知:公司本部从XX时间开始,调整省略很长很长的内容调整省略很长很长的内容公司本部从XX时间开始,调整省略很长很长的内容调整省略很长很长的内容公司本部从XX时间开始,调整省略很长很长的内容调整省略很长很长的内容</span>
+      <span className="notify-list-main-dom-msg">最新通知:{content}</span>
       <span className="notify-list-main-dom-fuc" onClick={this.onClick}>[查看全部]</span>
     </div>
   }

--
Gitblit v1.8.0