Adjustreact
caicai8 5 years ago
parent a9be2995d2
commit d730374677

@ -36,6 +36,11 @@ class LiveNew extends Component{
})
}
})
}else{
this.props.form.setFieldsValue({
url:undefined,
description:undefined
})
}
this.setState({
isSpining:false
@ -45,6 +50,7 @@ class LiveNew extends Component{
handleSubmit=()=>{
this.props.form.validateFields((err, values) => {
if(!err){
console.log("2")
const { liveId } = this.props;
if(liveId){
// 修改
@ -89,10 +95,14 @@ class LiveNew extends Component{
}
validateDesc= (rule, value, callback) => {
if(!value){
callback();
}
if (value.length > 100) {
callback("直播说明不能超过100个字");
}else{
callback();
}
callback();
}
cancelNew=()=>{

Loading…
Cancel
Save