瀏覽代碼

修改连线题问题

dusenyao 1 年之前
父節點
當前提交
fb89853156
共有 2 個文件被更改,包括 834 次插入402 次删除
  1. 831 401
      package-lock.json
  2. 3 1
      src/views/book/courseware/create/components/question/matching/Matching.vue

文件差異過大導致無法顯示
+ 831 - 401
package-lock.json


+ 3 - 1
src/views/book/courseware/create/components/question/matching/Matching.vue

@@ -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,

部分文件因文件數量過多而無法顯示