From 40852401907ce5d59171920c1b2db4b23dcc4691 Mon Sep 17 00:00:00 2001
From: liyj <1003249715@qq.com>
Date: Wed, 06 May 2020 16:16:08 +0800
Subject: [PATCH] 新增钉钉入库

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

diff --git a/src/components/common/NotifyList/index.jsx b/src/components/common/NotifyList/index.jsx
index 86d7c72..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.documentTitle || ''
-      })
+      if( res ) {
+        this.setState({
+          content: res.documentTitle || ''
+        })
+      }
     })
   }
 

--
Gitblit v1.8.0