forked from Gitlink/forgeplus-react
update
This commit is contained in:
parent
dde7fa730a
commit
5bda100e32
|
@ -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 || ''
|
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || '15243705227'
|
||||||
}
|
}
|
||||||
function clearAllCookie() {
|
function clearAllCookie() {
|
||||||
cookie.remove('_educoder_session', { path: '/' });
|
cookie.remove('_educoder_session', { path: '/' });
|
||||||
|
|
|
@ -26,7 +26,6 @@ class IndexItem extends Component {
|
||||||
|
|
||||||
projectHref=(link , user_apply_signatures,project_id,is_secret , id)=>{
|
projectHref=(link , user_apply_signatures,project_id,is_secret , id)=>{
|
||||||
const { user , showLoginDialog } = this.props;
|
const { user , showLoginDialog } = this.props;
|
||||||
debugger;
|
|
||||||
if(is_secret && (!user || (user && !user.login))){
|
if(is_secret && (!user || (user && !user.login))){
|
||||||
showLoginDialog();
|
showLoginDialog();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -43,8 +43,8 @@ const ManageNew = Loadable({
|
||||||
class Index extends Component {
|
class Index extends Component {
|
||||||
render() {
|
render() {
|
||||||
const { projectsId , owner } = this.props.match.params;
|
const { projectsId , owner } = this.props.match.params;
|
||||||
const { user } = this.props;
|
|
||||||
const { pathname } = this.props.history.location;
|
const { pathname } = this.props.history.location;
|
||||||
|
const { projectDetail } = this.props;
|
||||||
|
|
||||||
const flag = pathname === `/projects/${owner}/${projectsId}/setting`;
|
const flag = pathname === `/projects/${owner}/${projectsId}/setting`;
|
||||||
return (
|
return (
|
||||||
|
@ -93,7 +93,7 @@ class Index extends Component {
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
{
|
{
|
||||||
user && user.login === owner ?
|
projectDetail && projectDetail.permission && projectDetail.permission === "Owner" ?
|
||||||
<li
|
<li
|
||||||
className={pathname.indexOf("setting/special") > -1 ? "active" : ""}
|
className={pathname.indexOf("setting/special") > -1 ? "active" : ""}
|
||||||
>
|
>
|
||||||
|
|
|
@ -15,7 +15,6 @@ function SpecialProject(props){
|
||||||
const [ loading ,setLoading ] = useState(true);
|
const [ loading ,setLoading ] = useState(true);
|
||||||
|
|
||||||
const { owner , projectsId} = props.match.params;
|
const { owner , projectsId} = props.match.params;
|
||||||
console.log(props);
|
|
||||||
const { project_id } = props;
|
const { project_id } = props;
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
|
@ -133,7 +132,7 @@ function SpecialProject(props){
|
||||||
|
|
||||||
const menu=(
|
const menu=(
|
||||||
<Menu onClick={chooseStatus}>
|
<Menu onClick={chooseStatus}>
|
||||||
<Menu.Item>全部</Menu.Item>
|
<Menu.Item key="all">全部</Menu.Item>
|
||||||
<Menu.Item key="waiting">审核中</Menu.Item>
|
<Menu.Item key="waiting">审核中</Menu.Item>
|
||||||
<Menu.Item key="unpassed">已拒绝</Menu.Item>
|
<Menu.Item key="unpassed">已拒绝</Menu.Item>
|
||||||
<Menu.Item key="passed">已同意</Menu.Item>
|
<Menu.Item key="passed">已同意</Menu.Item>
|
||||||
|
|
Loading…
Reference in New Issue