diff --git a/src/views/Article/Article.vue b/src/views/Article/Article.vue index 4ebe7d6..fb6a5aa 100644 --- a/src/views/Article/Article.vue +++ b/src/views/Article/Article.vue @@ -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) => {