feat:add shuffle mode

This commit is contained in:
Zyronon
2025-11-04 01:39:25 +08:00
parent 42608d6303
commit ae6b802ab4

View File

@@ -160,14 +160,17 @@ async function savePracticeSetting() {
}
async function onShufflePracticeSettingOk(total) {
window.umami?.track('startSuffleStudyWord', {
window.umami?.track('startShuffleStudyWord', {
name: store.sdict.name,
index: store.sdict.lastLearnIndex,
perDayStudyNumber: store.sdict.perDayStudyNumber,
total,
custom: store.sdict.custom,
complete: store.sdict.complete,
wordPracticeMode: settingStore.wordPracticeMode
})
isSaveData = false
localStorage.removeItem(PracticeSaveWordKey.key)
currentStudy.shuffle = shuffle(store.sdict.words).slice(0, total)
nav('practice-words/' + store.sdict.id, {}, currentStudy)
}