直播设置

dev_video
caicai8 5 years ago
parent b5312a9d0c
commit 15798db9ff

@ -38,7 +38,9 @@ class Live extends Component{
} }
</React.Fragment> </React.Fragment>
: :
<div className="edu-back-white">
<NoneData style={{width: '100%'}}></NoneData> <NoneData style={{width: '100%'}}></NoneData>
</div>
} }
</div> </div>
) )

@ -10,12 +10,15 @@ class LiveNew extends Component{
constructor(props){ constructor(props){
super(props); super(props);
this.state={ this.state={
isSpining:true isSpining:false
} }
} }
componentDidUpdate=(prevState)=>{ componentDidUpdate=(prevState)=>{
if(prevState && prevState.liveId !== this.props.liveId){ if(prevState && prevState.liveId !== this.props.liveId){
this.setState({
isSpining:true
})
this.checkType(); this.checkType();
} }
} }

@ -203,7 +203,9 @@ class Video extends Component{
</div> </div>
</React.Fragment> </React.Fragment>
: :
<div className="edu-back-white">
<NoneData style={{width: '100%'}}></NoneData> <NoneData style={{width: '100%'}}></NoneData>
</div>
} }
{ {

Loading…
Cancel
Save