删除-要更新左侧nav的数据

Adjustreact
caicai8 5 years ago
parent 6e726a1a12
commit d883f4b62d

@ -147,6 +147,7 @@ class Video extends Component{
}).then(result=>{ }).then(result=>{
if(result){ if(result){
this.props.showNotification(`删除成功!`); this.props.showNotification(`删除成功!`);
this.props.updataleftNavfun();
const { listFunc , page } = this.props; const { listFunc , page } = this.props;
listFunc && listFunc(page); listFunc && listFunc(page);
} }

@ -180,6 +180,7 @@ class VideoIndex extends Component{
render(){ render(){
const { videos , upload , videoData , type , liveData , lives , page , liveVisible , isSpining , liveId } = this.state; const { videos , upload , videoData , type , liveData , lives , page , liveVisible , isSpining , liveId } = this.state;
const { admin , is_teacher , business } = this.props.user; const { admin , is_teacher , business } = this.props.user;
// console.log("p",this.props);
return( return(
<React.Fragment> <React.Fragment>
<LivesNew <LivesNew

Loading…
Cancel
Save