This commit is contained in:
caishi 2021-01-05 09:23:58 +08:00
parent dde7fa730a
commit 5bda100e32
4 changed files with 4 additions and 6 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 || ''
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || '15243705227'
}
function clearAllCookie() {
cookie.remove('_educoder_session', { path: '/' });

View File

@ -26,7 +26,6 @@ class IndexItem extends Component {
projectHref=(link , user_apply_signatures,project_id,is_secret , id)=>{
const { user , showLoginDialog } = this.props;
debugger;
if(is_secret && (!user || (user && !user.login))){
showLoginDialog();
return;

View File

@ -43,8 +43,8 @@ const ManageNew = Loadable({
class Index extends Component {
render() {
const { projectsId , owner } = this.props.match.params;
const { user } = this.props;
const { pathname } = this.props.history.location;
const { projectDetail } = this.props;
const flag = pathname === `/projects/${owner}/${projectsId}/setting`;
return (
@ -93,7 +93,7 @@ class Index extends Component {
</p>
</li>
{
user && user.login === owner ?
projectDetail && projectDetail.permission && projectDetail.permission === "Owner" ?
<li
className={pathname.indexOf("setting/special") > -1 ? "active" : ""}
>

View File

@ -15,7 +15,6 @@ function SpecialProject(props){
const [ loading ,setLoading ] = useState(true);
const { owner , projectsId} = props.match.params;
console.log(props);
const { project_id } = props;
useEffect(()=>{
@ -133,7 +132,7 @@ function SpecialProject(props){
const menu=(
<Menu onClick={chooseStatus}>
<Menu.Item>全部</Menu.Item>
<Menu.Item key="all">全部</Menu.Item>
<Menu.Item key="waiting">审核中</Menu.Item>
<Menu.Item key="unpassed">已拒绝</Menu.Item>
<Menu.Item key="passed">已同意</Menu.Item>