diff --git a/src/pages/pc/components/toolbar/index.vue b/src/pages/pc/components/toolbar/index.vue
index e01feac8..22eb5f1c 100644
--- a/src/pages/pc/components/toolbar/index.vue
+++ b/src/pages/pc/components/toolbar/index.vue
@@ -80,9 +80,7 @@ const {nav} = useNav()
:title="`单词本(${settingStore.shortcutKeyMap[ShortcutKey.TogglePanel]})`"
icon="tdesign:menu-unfold"/>
-
- {{ statisticsStore.step ? '复习' : '学习新词'}}
-
+
{
open = true
})
+ let data = cloneDeep(statStore)
+ delete data.step
+ delete data.correctRate
+ store.currentStudyWordDict.statistics.push(data as any)
+
const close = () => {
open = false
}
diff --git a/src/pages/pc/practice/practice-word/TypingWord.vue b/src/pages/pc/practice/practice-word/TypingWord.vue
index 082e1285..a9463c2d 100644
--- a/src/pages/pc/practice/practice-word/TypingWord.vue
+++ b/src/pages/pc/practice/practice-word/TypingWord.vue
@@ -94,11 +94,12 @@ const nextWord: Word = $computed(() => {
function next(isTyping: boolean = true) {
if (current.index === current.words.length - 1) {
if (current.wrongWords.length) {
- console.log('当前背完了,但还有错词')
+ console.log('学完了,但还有错词')
current.words = cloneDeep(current.wrongWords)
+ current.index = 0
current.wrongWords = []
} else {
- console.log('这章节完了', statisticsStore.total)
+ console.log('学完了,没错词', statisticsStore.total)
isTyping && statisticsStore.inputWordNumber++
statisticsStore.speed = Date.now() - statisticsStore.startDate
if (statisticsStore.step) {
@@ -267,7 +268,9 @@ onUnmounted(() => {
v-loading="!store.load"
>