From f9e9df1e43014e67580ad03dc86854a55673403d Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Thu, 30 Apr 2020 17:38:23 +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