11wqe1 3 meses atrás
pai
commit
9b59f06cc8

+ 2 - 2
src/components/components/choseWorksDetailDialog.vue

@@ -140,9 +140,9 @@
                       />
                     </svg>
 
-                    <span>提问:{{ testJson.answerTitle }}</span>
+                    <span v-if="testJson && testJson.answerTitle">提问:{{ testJson.answerTitle }}</span>
                   </div>
-									<span style="padding: 10px;">
+									<span v-if="testJson && testJson.answer" style="padding: 10px;">
                     {{ testJson.answer }}
 									</span>
 								</div>