|
|
@ -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===""){
|
|
|
|