zhangjie 6 달 전
부모
커밋
1b7899e431
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/modules/paper-export/views/PaperTemplateBuild.vue

+ 3 - 1
src/modules/paper-export/views/PaperTemplateBuild.vue

@@ -572,7 +572,9 @@ export default {
       const answerPdfName = `${this.fieldData.courseName}(${this.fieldData.courseCode})_${this.fieldData.paperName}_答案.pdf`;
       const answerPdfName = `${this.fieldData.courseName}(${this.fieldData.courseCode})_${this.fieldData.paperName}_答案.pdf`;
       const answerBlob = await buildPdf(
       const answerBlob = await buildPdf(
         {
         {
-          elements: document.getElementById("answer-template-view").children,
+          elements: document
+            .getElementById("answer-template-view")
+            .querySelectorAll(".page-answer-flat"),
           pageSize: "A4",
           pageSize: "A4",
           scale: this.pdfScale,
           scale: this.pdfScale,
         },
         },