diff --git a/src/AppConfig.js b/src/AppConfig.js index a5a063b09..a36c05b5b 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -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: '/' }); diff --git a/src/forge/DevOps/Dispose/List.jsx b/src/forge/DevOps/Dispose/List.jsx index 7abf12d0a..b6b83b56c 100644 --- a/src/forge/DevOps/Dispose/List.jsx +++ b/src/forge/DevOps/Dispose/List.jsx @@ -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) { 已撤销 ); - case 'pending': + default : return ( 准备中 diff --git a/src/forge/DevOps/Structure.jsx b/src/forge/DevOps/Structure.jsx index 5ad84aabf..45f734bdf 100644 --- a/src/forge/DevOps/Structure.jsx +++ b/src/forge/DevOps/Structure.jsx @@ -187,7 +187,7 @@ function Structure(props,ref){ 已撤销 ); - case 'pending': + default: return ( 准备中 diff --git a/src/forge/Main/CoderRootCommit.js b/src/forge/Main/CoderRootCommit.js index 9fc39cae7..c9665c77a 100644 --- a/src/forge/Main/CoderRootCommit.js +++ b/src/forge/Main/CoderRootCommit.js @@ -145,7 +145,7 @@ class CoderRootCommit extends Component{ ) }) } - {commitDatas && commitDatas.length > 0 && } + {commitDatas && commitDatas.length === 0 && } { diff --git a/src/forge/Main/list.css b/src/forge/Main/list.css index c901fa1cf..272583d1c 100644 --- a/src/forge/Main/list.css +++ b/src/forge/Main/list.css @@ -665,7 +665,6 @@ a.color-grey-ccc:hover{ .commitList{ padding:0px 30px; - min-height: 450px; } .commitList > div{ border-bottom: 1px solid #EEEEEE;