This commit is contained in:
zyronon
2023-08-05 00:22:58 +08:00
parent 321408cd0d
commit bc5fcdcd19
3 changed files with 61 additions and 11 deletions

View File

@@ -53,14 +53,6 @@ onMounted(() => {
let obj: Config = JSON.parse(configStr)
store.init(obj)
}
if (config.dict === 'nce2') {
wordList = chunk(NCE_2, 15) as any
let wordTemp = wordList?.[config.chapterIndex]?.[config.wordIndex]
if (wordTemp && config.skipWordNames.includes(wordTemp.name)) {
next()
}
}
window.addEventListener('keydown', onKeyDown)
})
@@ -172,7 +164,8 @@ function playAudio() {
<div class="word" :class="wrong&&'is-wrong'">
<span class="input" v-if="input">{{ input }}</span>
<span class="wrong" v-if="wrong">{{ wrong }}</span>
<span class="letter">{{ store.word.name.slice(input.length + wrong.length) }}</span>
<!-- <span class="letter">{{ store.word.name.slice(input.length + wrong.length) }}</span>-->
<span class="letter">{{ store.word.name }}</span>
</div>
<div class="audio" @click="playAudio">播放</div>
</div>