[{{
@@ -338,7 +337,7 @@ function checkCursorPosition() {
+ :dictation="(settingStore.dictation && !showFullWord)"/>
{{ item.cn }}
@@ -355,8 +354,8 @@ function checkCursorPosition() {
diff --git a/src/types/types.ts b/src/types/types.ts
index e74c02e0..4beffb30 100644
--- a/src/types/types.ts
+++ b/src/types/types.ts
@@ -176,22 +176,21 @@ export const SlideType = {
VERTICAL: 1,
}
-export interface StudyData {
+export interface PracticeData {
index: number,
words: any[],
wrongWords: any[],
}
+export interface TaskWords {
+ new: Word[],
+ review: Word[],
+ write: Word[],
+}
+
export class DictId {
static wordCollect = 'wordCollect'
static wordWrong = 'wordWrong'
static wordKnown = 'wordKnown'
static articleCollect = 'articleCollect'
-}
-
-export enum DictId2 {
- wordCollect = 'wordCollect',
- wordWrong = 'wordWrong',
- wordKnown = 'wordKnown',
- articleCollect = 'articleCollect'
-}
+}
\ No newline at end of file
diff --git a/src/utils/const.ts b/src/utils/const.ts
index 2d1ad305..0d65b323 100644
--- a/src/utils/const.ts
+++ b/src/utils/const.ts
@@ -22,7 +22,7 @@ export const SAVE_SETTING_KEY = {
}
export const EXPORT_DATA_KEY = {
key: 'typing-word-export',
- version: 2
+ version: 3
}
export const LOCAL_FILE_KEY = 'typing-word-files'
@@ -32,3 +32,7 @@ export enum PracticeSaveKey {
Article = 'PracticeSaveArticleKey',
}
+export const PracticeSaveWordKey = {
+ key: 'PracticeSaveWord',
+ version: 1
+}