Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
official
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
official
Commits
a1d18dcd
Commit
a1d18dcd
authored
May 14, 2021
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add news hide
parent
2897a8b2
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
index.js
components/ArticleGrid/index.js
+4
-1
No files found.
components/ArticleGrid/index.js
View file @
a1d18dcd
...
@@ -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
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment