diff --git a/src/pages/article/components/TypingArticle.vue b/src/pages/article/components/TypingArticle.vue
index 9c491d39..a65f4209 100644
--- a/src/pages/article/components/TypingArticle.vue
+++ b/src/pages/article/components/TypingArticle.vue
@@ -1,11 +1,11 @@
@@ -627,10 +647,10 @@ const currentPractice = inject('currentPractice',[])
onContextMenu(e,sentence,indexI,indexJ,indexW)"
- class="word"
- :class="[(sectionIndex>indexI
+ v-for="(word,indexW) in sentence.words"
+ @contextmenu="e=>onContextMenu(e,sentence,indexI,indexJ,indexW)"
+ class="word"
+ :class="[(sectionIndex>indexI
?'wrote':
(sectionIndex>=indexI &&sentenceIndex>indexJ)
?'wrote' :
@@ -656,11 +676,11 @@ const currentPractice = inject('currentPractice',[])
@@ -690,19 +710,20 @@ const currentPractice = inject('currentPractice',[])
重新练习
+ @click="init">重新练习
下一篇
+ v-if="store.currentBook.lastLearnIndex < store.currentBook.articles.length - 1"
+ @click="emit('next')">下一篇
历史记录
-
-
{{ i + 1}}.
-
{{ _dateFormat(item.startDate,'YYYY-MM-DD HH:mm')}}
-
{{ msToMinute(item.spend)}}
+
+ {{ i + 1 }}.
+ {{ _dateFormat(item.startDate, 'YYYY-MM-DD HH:mm') }}
+ {{ msToMinute(item.spend) }}
diff --git a/src/pages/word/WordsPage.vue b/src/pages/word/WordsPage.vue
index 00719388..c3dfe7ea 100644
--- a/src/pages/word/WordsPage.vue
+++ b/src/pages/word/WordsPage.vue
@@ -47,7 +47,6 @@ async function init() {
}
}
if (!currentStudy.new.length && store.sdict.words.length) {
- debugger
let d = localStorage.getItem(PracticeSaveWordKey.key)
if (d) {
try {
diff --git a/src/utils/const.ts b/src/utils/const.ts
index 0d65b323..c2a8a5e1 100644
--- a/src/utils/const.ts
+++ b/src/utils/const.ts
@@ -27,12 +27,12 @@ export const EXPORT_DATA_KEY = {
export const LOCAL_FILE_KEY = 'typing-word-files'
-export enum PracticeSaveKey {
- Word = 'PracticeSaveWordKey',
- Article = 'PracticeSaveArticleKey',
-}
-
export const PracticeSaveWordKey = {
key: 'PracticeSaveWord',
version: 1
}
+
+export const PracticeSaveArticleKey = {
+ key: 'PracticeSaveArticle',
+ version: 1
+}