import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Link } from "react-router-dom"; class TPMNav extends Component { render() { // console.log("componentDidMount"); // console.log("TPMNavTPMNavTPMNavTPMNav"); // console.log(this.props); const { user, match, shixun, secret_repository,is_jupyter} = this.props; let isAdminOrCreator = false; if (user) { isAdminOrCreator = user.admin || user.manager } const shixunId = match.params.shixunId; // const challengesPath = `/shixuns/${shixunId}/challenges`; // console.log(this.props.propaedeutics) const challengesPath = `/shixuns/${shixunId}/challenges`; // console.log(match.path) // console.log("TPMNavTPMNavTPMNav"); // console.log(is_jupyter); const is_teacher = this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:""; const isfalse=true; return ( isfalse?"":
任务 { this.props.propaedeutics===undefined?"":this.props.propaedeutics===false?"":背景知识 } { this.props.identity >4||this.props.identity===undefined ?"": (this.props.is_jupyter===false? 版本库 :"") } {this.props.identity >4||this.props.identity===undefined ?"": secret_repository && 私密版本库} 合作者 {/*jupyter*/} { this.props.is_jupyter===true? 数据集 :"" } { this.props.is_jupyter === false ? 评论 :"" } { this.props.is_jupyter === false ? 排行榜:"" } {this.props.identity >2||this.props.identity===undefined?"": 审核情况 } {this.props.identity >4||this.props.identity===undefined ? "":配置}
); } } export default TPMNav;