+
每章单词数
- 章节列表:共{{
- currentSelectDict.chapterWords.length
- }}章(每章{{ currentSelectDict.chapterWordNumber }}词)
+
+ 文章列表:共{{ currentSelectDict.articles.length }}章
+
+
+ 章节列表:共{{
+ currentSelectDict.chapterWords.length
+ }}章(每章{{ currentSelectDict.chapterWordNumber }}词)
+
+ :dict="currentSelectDict"/>
diff --git a/src/hooks/article.ts b/src/hooks/article.ts
index 48cb8b41..1c95de7b 100644
--- a/src/hooks/article.ts
+++ b/src/hooks/article.ts
@@ -1,4 +1,4 @@
-import {ArticleWord, DefaultArticleWord, Sentence} from "@/types.ts";
+import {ArticleWord, DefaultArticleWord, DictType, Sentence} from "@/types.ts";
import {cloneDeep} from "lodash-es";
import nlp from "compromise";
import {split} from "sentence-splitter";
@@ -255,3 +255,9 @@ export function getSplitTranslateText(article: string) {
return str
}
+export function isArticle(type: DictType): boolean {
+ return [
+ DictType.publicArticle,
+ DictType.customArticle
+ ].includes(type)
+}
\ No newline at end of file
diff --git a/src/hooks/dict.ts b/src/hooks/dict.ts
new file mode 100644
index 00000000..e69de29b
diff --git a/src/stores/base.ts b/src/stores/base.ts
index 399ec870..793cbbb8 100644
--- a/src/stores/base.ts
+++ b/src/stores/base.ts
@@ -124,8 +124,9 @@ export const useBaseStore = defineStore('base', {
}
],
current: {
- dictType: DictType.publicDict,
- index: 1,
+ // dictType: DictType.publicDict,
+ dictType: DictType.publicArticle,
+ index: 0,
editIndex: 0,
repeatNumber: 0,
},