|
@@ -100,7 +100,9 @@ export default {
|
|
|
this.data.option_list.push(getOption(this.data.property.column_num));
|
|
|
}
|
|
|
// 增加答案列表
|
|
|
- this.data.answer.answer_list.push(Array(this.data.property.column_num).fill({ mark: '' }));
|
|
|
+ this.data.answer.answer_list.push(
|
|
|
+ Array.from({ length: this.data.property.column_num }, () => ({ mark: '' })),
|
|
|
+ );
|
|
|
// 将答案列表最后一项的第一个元素设置进答案列表第一项
|
|
|
this.data.answer.answer_list[this.data.answer.answer_list.length - 1][0] = {
|
|
|
mark: this.data.option_list[this.data.option_list.length - 1][0].mark,
|