feat:keep a record of historical practice

This commit is contained in:
Zyronon
2025-09-26 01:37:46 +08:00
parent 676417bbc1
commit 6a99fda66a
14 changed files with 185 additions and 154 deletions

View File

@@ -1,8 +1,8 @@
import {Article, Word} from "@/types/types.ts";
import {useBaseStore} from "@/stores/base.ts";
import {useSettingStore} from "@/stores/setting.ts";
import {getDefaultWord} from "@/types/func.ts";
import {getRandomN, splitIntoN} from "@/utils";
import { Article, TaskWords, Word } from "@/types/types.ts";
import { useBaseStore } from "@/stores/base.ts";
import { useSettingStore } from "@/stores/setting.ts";
import { getDefaultWord } from "@/types/func.ts";
import { getRandomN, splitIntoN } from "@/utils";
export function useWordOptions() {
const store = useBaseStore()
@@ -85,8 +85,7 @@ export function useArticleOptions() {
}
}
export function getCurrentStudyWord() {
console.log('getCurrentStudyWord')
export function getCurrentStudyWord(): TaskWords {
const store = useBaseStore()
let data = {new: [], review: [], write: []}
let dict = store.sdict;