diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index 351cb80ff..b341e2d52 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -1229,6 +1229,7 @@ submittojoinclass=(value)=>{ </a> <ul className="edu-menu-list" style={{top:'60px'}}> {/*<span className="bor-bottom-greyE currentName task-hide">{user.username}</span>*/} + <li><Link to={`/users/${this.props.current_user.login}/courses`}>我的个人主页</Link></li> {coursestypes===true?"":<li><Link to={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/courses`}>{this.props.user&&this.props.user.main_site===false?"我的课堂":"我的翻转课堂"}</Link></li>} {/* p 老师 l 学生 */} {shixuntype===true?"":<li><Link to={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/shixuns`}>我的实训项目</Link></li>} diff --git a/public/react/src/modules/tpm/newshixuns/Newshixuns.js b/public/react/src/modules/tpm/newshixuns/Newshixuns.js index 071b19a5f..361ed3248 100644 --- a/public/react/src/modules/tpm/newshixuns/Newshixuns.js +++ b/public/react/src/modules/tpm/newshixuns/Newshixuns.js @@ -49,7 +49,7 @@ class Newshixuns extends Component { this.setState({ newshixunlist: response.data }); - this.contentMdRef.current.setValue(!response.data.sample[0][1] ? "" : response.data.sample[0][1]); + // this.contentMdRef.current.setValue(!response.data.sample[0][1] ? "" : response.data.sample[0][1]); } } }).catch((error) => {