import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Link } from "react-router-dom"; class TPMNav extends Component { render() { const { user, match, shixun } = 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) return (
任务 { this.props.propaedeutics===undefined?"":this.props.propaedeutics===false?"":背景知识 } 4||this.props.identity===undefined ? "none" : 'block'}} className={`${match.url.indexOf('repository') != -1 ? 'active' : ''} fl mr40`}>版本库 合作者 评论 排行榜 {/* target="_blank"*/} 4||this.props.identity===undefined ? "none" : 'block'}} >配置
); } } export default TPMNav;