Commit e8176267 by wangshuo

暂无测试记录

parent 02599b32
......@@ -41,7 +41,7 @@ export default class RecordPopup extends Component {
</div>
<div className="table__body">
{
recordList.map((item, index) => {
recordList.length > 0 && recordList.map((item, index) => {
return (<div className="tr__container" key={index}>
<span className="tr">{item.submit_time}</span>
<span className="tr">{item.score}</span>
......@@ -56,6 +56,13 @@ export default class RecordPopup extends Component {
)
})
}
{
recordList.length === 0 && (
<div className="tr__container" key={index}>
<p>暂无测试记录</p>
</div>
)
}
</div>
</div>
</div>
......
......@@ -76,6 +76,10 @@
&:last-child {
border-bottom: none;
}
p {
color: #525c65;
}
}
}
......
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