Adjustreact
caicai8 5 years ago
parent 474e3fa4c7
commit 15564639ec

@ -102,14 +102,17 @@ class LiveNew extends Component{
live_time:beginTime live_time:beginTime
}).then(result=>{ }).then(result=>{
if(result){ if(result){
this.setState({
isSpining:false
})
this.props.showNotification("修改成功!"); this.props.showNotification("修改成功!");
const { setliveVisibel } = this.props; const { setliveVisibel } = this.props;
setliveVisibel && setliveVisibel(false,true); setliveVisibel && setliveVisibel(false,true);
} }
this.setState({
isSpining:false
})
}).catch(error=>{ }).catch(error=>{
this.setState({
isSpining:false
})
console.log(error); console.log(error);
}) })
} }
@ -124,14 +127,17 @@ class LiveNew extends Component{
live_time:beginTime live_time:beginTime
}).then(result=>{ }).then(result=>{
if(result){ if(result){
this.setState({
isSpining:false
})
this.props.showNotification("添加成功!"); this.props.showNotification("添加成功!");
const { setliveVisibel } = this.props; const { setliveVisibel } = this.props;
setliveVisibel && setliveVisibel(false,true); setliveVisibel && setliveVisibel(false,true);
} }
this.setState({
isSpining:false
})
}).catch(error=>{ }).catch(error=>{
this.setState({
isSpining:false
})
console.log(error); console.log(error);
}) })
} }

Loading…
Cancel
Save