This commit is contained in:
caishi 2021-03-05 18:35:54 +08:00
parent 99174c2782
commit f4332db4ad
5 changed files with 12 additions and 13 deletions

View File

@ -27,7 +27,7 @@ if (isDev) {
}
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin'
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'student'
}
function clearAllCookie() {
cookie.remove('_educoder_session', { path: '/' });

View File

@ -2,14 +2,14 @@ import React from 'react';
import { Table , Popconfirm } from 'antd';
import { Link } from 'react-router-dom';
const STATUS = {
running:"运行中",
failure:"未通过",
error:"未通过",
success:"已通过",
killed:"已撤销",
pending:"准备中"
}
// const STATUS = {
// running:"",
// failure:"",
// error:"",
// success:"",
// killed:"",
// pending:""
// }
function renderTableStatus(status) {
switch (status) {
case "running":
@ -36,7 +36,7 @@ function renderTableStatus(status) {
<i className="iconfont icon-weitongguo"></i>已撤销
</span>
);
case 'pending':
default :
return (
<span className="statusTag Preparing">
<i className="iconfont icon-zhunbeizhong"></i>准备中

View File

@ -187,7 +187,7 @@ function Structure(props,ref){
<i className="iconfont icon-weitongguo"></i>已撤销
</span>
);
case 'pending':
default:
return (
<span className="statusTag Preparing">
<i className="iconfont icon-zhunbeizhong"></i>准备中

View File

@ -145,7 +145,7 @@ class CoderRootCommit extends Component{
)
})
}
{commitDatas && commitDatas.length > 0 && <Nodata _html="暂无数据"/>}
{commitDatas && commitDatas.length === 0 && <Nodata _html="暂无数据"/>}
</div>
</div>
{

View File

@ -665,7 +665,6 @@ a.color-grey-ccc:hover{
.commitList{
padding:0px 30px;
min-height: 450px;
}
.commitList > div{
border-bottom: 1px solid #EEEEEE;