From 2ea56ed08b58386f0612635101b1acd51cd4a44c Mon Sep 17 00:00:00 2001 From: Mr Ke <kelq@hugeinfo.com.cn> Date: Wed, 29 Apr 2020 18:06:45 +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