Adjustreact
caicai8 5 years ago
parent 474e3fa4c7
commit 15564639ec

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

Loading…
Cancel
Save