Sfoglia il codice sorgente

fix: 查看原卷判断题答案展示问题

zhangjie 11 mesi fa
parent
commit
1e5d888425

+ 1 - 1
src/features/examwork/StudentExamDetail/PreviewPaperDialog.vue

@@ -468,7 +468,7 @@ export default {
       } else {
       } else {
         let ansCont = "";
         let ansCont = "";
         if (structType === STRUCT_TYPES.BOOLEAN_CHOICE) {
         if (structType === STRUCT_TYPES.BOOLEAN_CHOICE) {
-          ansCont = answer ? "对" : "错";
+          ansCont = answer === "" ? "" : answer ? "对" : "错";
         } else {
         } else {
           ansCont = answer.map((item) => OPTION_NAME[item - 1]).join("");
           ansCont = answer.map((item) => OPTION_NAME[item - 1]).join("");
         }
         }