Commit e96e40c9 by zhanghaozhe

周年庆

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