From 5bda100e327a5f82f44c5c6cdba94a18d79cbb2f Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Tue, 5 Jan 2021 09:23:58 +0800 Subject: [PATCH] update --- src/AppConfig.js | 2 +- src/forge/Main/IndexItem.js | 1 - src/forge/Settings/Index.js | 4 ++-- src/forge/Settings/SpecialProject.jsx | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index e271ed76..82a5cb78 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 || '' + window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || '15243705227' } function clearAllCookie() { cookie.remove('_educoder_session', { path: '/' }); diff --git a/src/forge/Main/IndexItem.js b/src/forge/Main/IndexItem.js index 3441b76e..30979954 100644 --- a/src/forge/Main/IndexItem.js +++ b/src/forge/Main/IndexItem.js @@ -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; diff --git a/src/forge/Settings/Index.js b/src/forge/Settings/Index.js index 2196018e..1fecef5c 100644 --- a/src/forge/Settings/Index.js +++ b/src/forge/Settings/Index.js @@ -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 {

{ - user && user.login === owner ? + projectDetail && projectDetail.permission && projectDetail.permission === "Owner" ?
  • -1 ? "active" : ""} > diff --git a/src/forge/Settings/SpecialProject.jsx b/src/forge/Settings/SpecialProject.jsx index 197af884..883b5d0a 100644 --- a/src/forge/Settings/SpecialProject.jsx +++ b/src/forge/Settings/SpecialProject.jsx @@ -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=( - 全部 + 全部 审核中 已拒绝 已同意