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