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' : debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' : 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() { function clearAllCookie() {
cookie.remove('_educoder_session', { path: '/' }); cookie.remove('_educoder_session', { path: '/' });

View File

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

View File

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

View File

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