소스 검색

错题调整

wangxy 5 달 전
부모
커밋
20d5cb2152
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      components/chengji/chengji.vue

+ 6 - 0
components/chengji/chengji.vue

@@ -124,9 +124,15 @@
 	
 	function showAnswerReply(item) {
 		if (item.type == 1) {
+      if (item.reply == null) {
+        return '未答'
+      }
 			// 单选题
 			return getLetterByIndex(item.reply)
 		} else if (item.type == 2){
+      if (item.reply == null) {
+        return '未答'
+      }
 			if (item.reply == 1) {
 				return '正确'
 			} else {