Commit a1d18dcd authored by 吕祺's avatar 吕祺 ⛹🏽

add news hide

parent 2897a8b2
...@@ -36,7 +36,10 @@ export default class ArticleGrid extends React.PureComponent { ...@@ -36,7 +36,10 @@ export default class ArticleGrid extends React.PureComponent {
nextProps.en !== this.props.en nextProps.en !== this.props.en
) { ) {
const articles = nextProps.articleList.filter((a) => const articles = nextProps.articleList.filter((a) =>
nextProps.en === null ? '' : nextProps.en ? a.abstractEN : a.abstract {
if(a.hide) return false
return nextProps.en === null ? '' : nextProps.en ? a.abstractEN : a.abstract
}
) )
const showMoreBtn = articles.length > 6 const showMoreBtn = articles.length > 6
this.setState({ this.setState({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment