This commit is contained in:
zyronon
2023-10-31 19:56:51 +08:00
parent bf80cf55c9
commit 7fee84022a
2 changed files with 7 additions and 4 deletions

View File

@@ -58,11 +58,15 @@ watch(() => props.words, () => {
practiceStore.repeatNumber = 0
practiceStore.startDate = Date.now()
practiceStore.correctRate = -1
practiceStore.total = props.words.length
practiceStore.inputWordNumber = 0
practiceStore.wrongWordNumber = 0
}, {immediate: true})
watch(data, () => {
practiceStore.total = data.words.length
practiceStore.index = data.index
})
const word = $computed(() => {
return data.words[data.index] ?? {
trans: [],
@@ -112,7 +116,6 @@ function next(isTyping: boolean = true) {
emitter.emit(EventKey.openStatModal, stat)
}
} else {
2
data.index++
isTyping && practiceStore.inputWordNumber++
console.log('这个词完了')

View File

@@ -216,13 +216,13 @@ const dictIsArticle = $computed(() => {
>总文章{{ runtimeStore.editDict.articles.length }}
</div>
<div class="num" v-else>
总词汇<span>{{ runtimeStore.editDict.length }}</span>
总词汇<span>{{ runtimeStore.editDict.originWords.length }}</span>
</div>
<div class="num">开始日期-</div>
<div class="num">花费时间-</div>
<div class="num">累积错误-</div>
<div class="num">进度
<el-progress :percentage="10"
<el-progress :percentage="0"
:stroke-width="8"
:show-text="false"/>
</div>