From 1386b9fff21abc8f611c2a6c199581ea67efe315 Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Sun, 26 Apr 2020 16:40:55 +0800
Subject: [PATCH] 修复bug
---
src/components/common/NotifyList/index.jsx | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/common/NotifyList/index.jsx b/src/components/common/NotifyList/index.jsx
index 665d4d0..86d7c72 100644
--- a/src/components/common/NotifyList/index.jsx
+++ b/src/components/common/NotifyList/index.jsx
@@ -27,7 +27,7 @@
}).then(res => {
console.log('res', res);
this.setState({
- content: res.documentContent || ''
+ content: res.documentTitle || ''
})
})
}
@@ -41,7 +41,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