This commit is contained in:
zyronon
2024-05-28 08:48:03 +08:00
parent 04734c6bd1
commit 137037f2ec
3 changed files with 19 additions and 2 deletions

View File

@@ -139,9 +139,14 @@ let wordData = $ref({
})
function getCurrentPractice() {
if (store.currentStudyWordDict.words?.length) {
let c = store.currentStudy.word
let wordDict = store.currentStudyWordDict;
if (wordDict.words?.length) {
wordData.index = 0
wordData.words = cloneDeep(store.currentStudyWordDict.words.slice(store.currentStudy.word.lastLearnIndex, store.currentStudy.word.lastLearnIndex + store.currentStudy.word.perDayStudyNumber))
wordData.statistics.map(v=>{
})
wordData.words = cloneDeep(wordDict.words.slice(c.lastLearnIndex, c.lastLearnIndex + c.perDayStudyNumber))
emitter.emit(EventKey.resetWord)
}
}