|
|
@ -61,8 +61,8 @@ const handleVoteToggle = (value) => { |
|
|
|
optionIndex.value = 3 |
|
|
|
form.voteTitle = ''; |
|
|
|
form.optionList = [ |
|
|
|
{ index: 1, optionContent: '' }, |
|
|
|
{ index: 2, optionContent: '' } |
|
|
|
{ optionIndex: 1, optionContent: '' }, |
|
|
|
{ optionIndex: 2, optionContent: '' } |
|
|
|
]; |
|
|
|
form.deadlineTime = ''; |
|
|
|
} else { |
|
|
@ -77,7 +77,7 @@ const addOption = () => { |
|
|
|
}); |
|
|
|
return |
|
|
|
} |
|
|
|
form.optionList.push({ index: optionIndex.value++, optionContent: '' }); |
|
|
|
form.optionList.push({ optionIndex: optionIndex.value++, optionContent: '' }); |
|
|
|
}; |
|
|
|
// 移除选项 |
|
|
|
const removeOption = (index) => { |
|
|
|