소스 검색

修改连线题问题

dusenyao 10 달 전
부모
커밋
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,

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.