dev_forum
杨树明 5 years ago
parent e4c44d4a16
commit 0144522d19

@ -88,11 +88,11 @@ class CoursesNew extends Component {
} }
componentDidUpdate(prevProps){ componentDidUpdate(prevProps){
if(prevProps.current_user!=this.props.current_user){ // if(prevProps.current_user!=this.props.current_user){
if(this.props.current_user.user_identity==="学生"){ // if(this.props.current_user.user_identity==="学生"){
window.location.href ="/403" // window.location.href ="/403"
} // }
} // }
} }
onChangeTimepublishs = (date, dateString) => { onChangeTimepublishs = (date, dateString) => {
if(dateString===""){ if(dateString===""){

Loading…
Cancel
Save