diff --git a/frontend/src/pages/WordLibrary.vue b/frontend/src/pages/WordLibrary.vue
index d4fb833..cf6df54 100644
--- a/frontend/src/pages/WordLibrary.vue
+++ b/frontend/src/pages/WordLibrary.vue
@@ -48,8 +48,8 @@ function refreshGraphPracticeResults() {
}
const viewTabs = [
- { key: 'list', label: '单词列表' },
{ key: 'memory', label: '记忆曲线' },
+ { key: 'list', label: '单词列表' },
]
const tabs = [
@@ -62,7 +62,7 @@ const tabs = [
const PAGE_SIZE = 20
-const activeView = ref('list')
+const activeView = ref('memory')
const activeTab = ref('')
const words = ref
([])
const currentPage = ref(1)
@@ -276,13 +276,18 @@ watch(
)
onMounted(() => {
- loadWords()
+ if (activeView.value === 'memory') {
+ refreshGraphPracticeResults()
+ loadViz()
+ } else {
+ loadWords()
+ }
})