Browse Source

背单词时忽略大小写

wangxy 2 days ago
parent
commit
4d03c3c502
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pages/newEnglish/components/beiPage.vue

+ 2 - 1
pages/newEnglish/components/beiPage.vue

@@ -116,7 +116,8 @@
 	// 选择单词
 
 	function checkIsRight() {
-		if (data.answer == props.activeWord.name) {
+    let ans1 = props.activeWord.name.toLowerCase();
+		if (data.answer == ans1) {
 			data.result = true;
 			resultAudioPlayerD.play('right', 'bei')
 			// noticeBackDb()