Browse Source

投票选项顺序字段名更改

master
maziyang 2 weeks ago
parent
commit
725cc63d39
  1. 6
      src/views/Article/Article.vue

6
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) => {

Loading…
Cancel
Save