dev_aliyun_beta
杨树林 5 years ago
parent a0c81ff651
commit 651677f919

@ -2146,9 +2146,20 @@ class PollNew extends Component {
} else { } else {
for (var i = 0; i < arr.length; i++) { for (var i = 0; i < arr.length; i++) {
if (index === i) { if (index === i) {
try {
if(parseInt(value)===0){
arr[i].question.min_choices = 2;
arr[i].question.max_choices = length;
}else{
arr[i].question.min_choices = parseInt(value); arr[i].question.min_choices = parseInt(value);
arr[i].question.max_choices = length; arr[i].question.max_choices = length;
} }
}catch (e) {
arr[i].question.min_choices = 2;
arr[i].question.max_choices = length;
}
break;
}
} }
this.setState({ this.setState({
adddom: arr adddom: arr

Loading…
Cancel
Save