Commit 517e33e1 by wangshuo

Merge branch '11-11' into pre

parents 38dee714 df0ecc88
...@@ -41,7 +41,7 @@ export default class RecordPopup extends Component { ...@@ -41,7 +41,7 @@ export default class RecordPopup extends Component {
</div> </div>
<div className="table__body"> <div className="table__body">
{ {
recordList.map((item, index) => { recordList.length > 0 && recordList.map((item, index) => {
return (<div className="tr__container" key={index}> return (<div className="tr__container" key={index}>
<span className="tr">{item.submit_time}</span> <span className="tr">{item.submit_time}</span>
<span className="tr">{item.score}</span> <span className="tr">{item.score}</span>
...@@ -56,6 +56,13 @@ export default class RecordPopup extends Component { ...@@ -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> </div>
</div> </div>
......
...@@ -76,6 +76,10 @@ ...@@ -76,6 +76,10 @@
&:last-child { &:last-child {
border-bottom: none; 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