|
|
@ -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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|