|
@@ -448,6 +448,10 @@ export default {
|
|
|
if(this.checked){
|
|
|
inputLists.push(allowList);
|
|
|
}
|
|
|
+ if(inputLists.length<3){
|
|
|
+ this.$message.error('投票答案必须大于2条');
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.form.suvey_array = JSON.stringify(inputLists);
|
|
|
}
|
|
|
// console.log('提交的数据:', this.inputList.map(input => input.value));
|
|
@@ -652,6 +656,10 @@ export default {
|
|
|
if(this.checked){
|
|
|
inputLists.push(allowList);
|
|
|
}
|
|
|
+ if(inputLists.length<3){
|
|
|
+ this.$message.error('投票答案必须大于2条');
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.form.suvey_array = JSON.stringify(inputLists);
|
|
|
}
|
|
|
|