Selaa lähdekoodia

试卷导出bug

zhangjie 1 vuosi sitten
vanhempi
commit
4c80b2c651
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      src/modules/paper-export/views/paperTemplateBuildMixins.js

+ 1 - 3
src/modules/paper-export/views/paperTemplateBuildMixins.js

@@ -261,7 +261,7 @@ export default {
           );
           // 无题干有选项时,题号放选项第一分组第一行
           // 主要是针对完形填空的特殊处理
-          if (!bodyGroups.length) {
+          if (!bodyGroups.length && question.questionSeq) {
             optionsGroups[0].elements[0].content.sections[0].blocks.unshift({
               type: "text",
               value: `${question.questionSeq}.`,
@@ -545,7 +545,6 @@ export default {
     },
     parseTitleOption(richJson, noVal, contType = "content") {
       if (isAnEmptyRichText(richJson)) return { elements: [], elementIds: [] };
-
       const bodys = this.transformRichJson(richJson);
       const elements = bodys.map((body, index) => {
         let presetData = {
@@ -601,7 +600,6 @@ export default {
       if (question.questionType === "FILL_BLANK_QUESTION") {
         quesBody = this.changeRichTextCloze(quesBody);
       }
-
       const { elements: bodyElements, elementIds: bodyElementIds } =
         this.parseTitleOption(
           quesBody,