Commit e96e40c9 by zhanghaozhe

周年庆

parent dcddddc4
...@@ -582,7 +582,7 @@ class Anniversary2020 extends Component { ...@@ -582,7 +582,7 @@ class Anniversary2020 extends Component {
const _auditions = auditionShowAll && auditions.length ? auditions : auditions.slice(0, 4) const _auditions = auditionShowAll && auditions.length ? auditions : auditions.slice(0, 4)
const _group = groupShowAll && group.length ? group : group.slice(0, 4) const _group = groupShowAll && group.length ? group : group.slice(0, 4)
const _rankList = isShowAllRankList ? rankList : rankList.slice(0, 10) const _rankList = Array.isArray(rankList) ? isShowAllRankList ? rankList : rankList.slice(0, 10) : []
return ( return (
<div className={'anniversary-2020'}> <div className={'anniversary-2020'}>
...@@ -927,7 +927,7 @@ class Anniversary2020 extends Component { ...@@ -927,7 +927,7 @@ class Anniversary2020 extends Component {
</ul> </ul>
</div> </div>
{ {
prizeData.stage !== 1 && <table> !!_rankList.length && prizeData.stage !== 1 && <table>
<thead> <thead>
<tr> <tr>
<th>名次</th> <th>名次</th>
...@@ -938,7 +938,7 @@ class Anniversary2020 extends Component { ...@@ -938,7 +938,7 @@ class Anniversary2020 extends Component {
</thead> </thead>
<tbody> <tbody>
{ {
!!_rankList.length && _rankList.map((item, index) => { _rankList.map((item, index) => {
return <tr key={index}> return <tr key={index}>
<td> <td>
{ {
......
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