This commit is contained in:
黄心宇 2023-06-15 10:43:45 +08:00
parent 9dc6ed5d78
commit 217e11d605
2 changed files with 6 additions and 2 deletions

View File

@ -17,7 +17,9 @@ function Contributor(props) {
const [ showList, setShowList] = useState([]);
function initList() {
setShowList([].concat(personList, new Array(personList.length % 3 - 1).fill({})))
if (personList.length !== 3) {
setShowList([].concat(personList, new Array(personList.length % 3 - 1).fill({})))
}
}
useEffect(()=>{

View File

@ -120,7 +120,9 @@ function ZoneVIP(props){
}
</ul>
:
<Nodata _html="暂无数据" img={ nodata }/>
(
temp === 'zone1' ? <Nodata _html="暂无数据" img={ nodata }/> : <Nodata _html="暂无数据" />
)
}
</div>
)