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) {
changeIndex(i,store.new)"
+ @change="(i:number) => changeIndex(i,store.collect)"
:isActive="settingStore.showPanel && tabIndex === 1"
:list="newData.list"
:activeIndex="newData.index"/>
-