Browse Source

错题调整

wangxy 5 months ago
parent
commit
20d5cb2152
1 changed files with 6 additions and 0 deletions
  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 {