video_transcode
caicai8 5 years ago
parent c6a2837aca
commit bea567ca88

@ -98,12 +98,12 @@ class Boards extends Component{
this.fetchBoards()
this.fetchAll()
on('updateNavSuccess', this.updateNavSuccess)
// on('updateNavSuccess', this.updateNavSuccess)
}
componentWillUnmount() {
off('updateNavSuccess', this.updateNavSuccess)
}
// componentWillUnmount() {
// off('updateNavSuccess', this.updateNavSuccess)
// }
updateNavSuccess = () => {
this.fetchBoards()
if (this.props.match.params.boardId == this.state.boardid) {
@ -112,7 +112,7 @@ class Boards extends Component{
}
componentDidUpdate = (prevProps) => {
if ( prevProps.match.params.boardId != this.props.match.params.boardId ) {
if ( prevProps.match.params.boardId !== this.props.match.params.boardId ) {
this.setState({
isSpin:true
})

@ -194,13 +194,11 @@ class Addcourses extends Component{
}
submittojoinclass=()=>{
debugger;
let{Addcoursestype}=this.state;
this.setState({
isSpin:true
})
let {invite_code,professor,assistant_professor,student}=this.state;
invite_code="MBTAP";
if(invite_code===undefined||invite_code===""){
this.setState({
invite_codetype:true,

@ -65,7 +65,6 @@ class RepositoryAddFileupload_files extends Component {
fileList = fileList.map(file => {
if (file.response) {
if (file.response.status===0) {
}
}
return file;
@ -76,12 +75,13 @@ class RepositoryAddFileupload_files extends Component {
};
onAttachmentRemove=(info)=>{
console.log(info);
if(info.response){
let shixunId = this.props.match.params.shixunId;
let {message,filspath}=this.state;
if(message===""||message===undefined){
this.props.showNotification('删除文件请先填写提交信息');
return
return;
}
let matchpath =this.props.match.path;

Loading…
Cancel
Save