This commit is contained in:
zyronon
2023-09-23 01:53:11 +08:00
parent 6c09b695a5
commit 56133b58c9
8 changed files with 317 additions and 281 deletions

View File

@@ -2,7 +2,7 @@
import {onMounted, watch} from "vue";
import {useBaseStore} from "@/stores/base.ts";
import {SaveKey} from "@/types.ts"
import {SaveDictKey} from "@/types.ts"
import Practice from "@/components/Practice/Practice.vue"
import AddArticle from "@/components/Practice/AddArticle.vue";
import {useEventListener, useStartKeyboardEventListener} from "@/hooks/event.ts";
@@ -26,7 +26,8 @@ function followSystem() {
watch(store.$state, (n) => {
// console.log('state', JSON.stringify(n.current, null, 2))
localStorage.setItem(SaveKey, JSON.stringify(n))
// console.log('state', n)
localStorage.setItem(SaveDictKey, JSON.stringify(n))
})
useStartKeyboardEventListener()