From 37e2cfa15476f0cdf6567c61abb4dd50f4574263 Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 24 Oct 2023 17:08:43 +0800 Subject: [PATCH] save --- Note.md | 3 +- src/components/Practice/Panel.vue | 12 ++-- src/components/Practice/Practice.vue | 19 +++++-- src/components/Practice/TypeArticle.vue | 75 +++++++++++++++++++++++-- src/components/Practice/TypeWord.vue | 8 +-- src/hooks/translate.ts | 4 +- src/stores/base.ts | 24 ++++---- src/types.ts | 2 +- 8 files changed, 110 insertions(+), 37 deletions(-) diff --git a/Note.md b/Note.md index 056c93f3..eac4eee1 100644 --- a/Note.md +++ b/Note.md @@ -51,4 +51,5 @@ http://enpuz.com/ 语法分析工具 加载单词列表时需要loading -背单词页面div,位置应该恒定,不应该随翻译内容变动而跳动 \ No newline at end of file +背单词页面div,位置应该恒定,不应该随翻译内容变动而跳动 + diff --git a/src/components/Practice/Panel.vue b/src/components/Practice/Panel.vue index cecb3bc3..5e3274e4 100644 --- a/src/components/Practice/Panel.vue +++ b/src/components/Practice/Panel.vue @@ -25,7 +25,7 @@ provide('tabIndex', computed(() => tabIndex)) watch(() => settingStore.showPanel, n => { if (n) { switch (store.current.dictType) { - case DictType.new: + case DictType.collect: return tabIndex = 1; case DictType.skip: return tabIndex = 3; @@ -51,7 +51,7 @@ const currentData = $computed(() => { }) const newData = $computed(() => { - if (store.current.dictType !== DictType.new) return {list: store.new.words ?? [], index: -1} + if (store.current.dictType !== DictType.collect) return {list: store.collect.words ?? [], index: -1} else return props }) @@ -89,7 +89,7 @@ function changeIndex(i: number, dict: Dict) {
{{ currentDict.name + ` 第${currentDict.chapterIndex + 1}章` }}
-
{{ store.new.name }}
+
{{ store.collect.name }}
{{ store.wrong.name }}
@@ -126,15 +126,15 @@ function changeIndex(i: number, dict: Dict) {
-