改成后端返回了的,都是要显示的,不管hidden的值是true还是false

dev_trainings
hjm 6 years ago
parent 0901c8baa0
commit 487323a49e

@ -213,11 +213,12 @@ class Comments extends Component {
<div className="comment_content clearfix" id={`reply_content_${item.id}`}>
<div className="color-grey-3 break_word_comments" id={`reply_content_${item.id}`}>
{ item.hidden && comment.admin === false && comment.manager === false
{/* 改成后端返回了的都是要显示的不管hidden的值是true还是false */}
{/* { item.hidden && comment.admin === false && comment.manager === false
? <p className="color-orange font-16">违规评论已被屏蔽</p>
: <div dangerouslySetInnerHTML={{__html: _content}}></div>
}
: */}
<div dangerouslySetInnerHTML={{__html: _content}}></div>
{/* } */}
<div className="cl"></div>
</div>
@ -309,10 +310,12 @@ class Comments extends Component {
<div className="comment_content clearfix" id={`reply_content_${item.id}`}>
<div className="color-grey-3 break_word_comments" id={`reply_content_${item.id}`}>
{ item.hidden && item.admin === false && (item.manager === false || item.manager == undefined)
{/* 改成后端返回了的都是要显示的不管hidden的值是true还是false */}
{/* { item.hidden && item.admin === false && (item.manager === false || item.manager == undefined)
? <p className="color-orange font-16">违规评论已被屏蔽</p>
: <div dangerouslySetInnerHTML={{__html: _content}}></div>
}
: */}
<div dangerouslySetInnerHTML={{__html: _content}}></div>
{/* } */}
<div className="cl"></div>
</div>
</div>

Loading…
Cancel
Save