Update TypeWord.vue

This commit is contained in:
Zyronon
2025-10-31 11:20:49 +08:00
committed by GitHub
parent 5c507dbf2e
commit c79b281ad5

View File

@@ -220,9 +220,10 @@ async function onTyping(e: KeyboardEvent) {
wrong = letter
playBeep()
volumeIconRef?.play()
await sleep(500)
if (settingStore.inputWrongClear) input = ''
wrong = ''
setTimeout(()=>{
if (settingStore.inputWrongClear) input = ''
wrong = ''
},500)
}
// 更新当前单词信息
updateCurrentWordInfo();