fix:a new free learning mode has been added

This commit is contained in:
zyronon
2025-08-21 02:15:22 +08:00
parent ac68fe3322
commit 2228783e67
16 changed files with 435 additions and 195 deletions

View File

@@ -120,6 +120,7 @@ export function getCurrentStudyWord() {
}
end++
}
} else {
//从start往后取perDay个单词作为当前练习单词
for (let item of list) {
@@ -130,6 +131,7 @@ export function getCurrentStudyWord() {
}
end++
}
//从start往前取perDay个单词作为当前复习单词取到0为止
list = dict.words.slice(0, start).toReversed()
for (let item of list) {
@@ -142,6 +144,12 @@ export function getCurrentStudyWord() {
}
}
//如果是自由模式那么统统设置到new字段里面去
if (settingStore.wordPracticeMode === 1) {
data.new = data.new.length ? data.new : data.review
data.review = []
return data
}
// 上上次更早的单词
//默认只取start之前的单词