This commit is contained in:
zyronon
2023-11-19 01:25:51 +08:00
parent 0ea816dc73
commit 642e1e3dee
16 changed files with 254 additions and 786 deletions

View File

@@ -10,6 +10,7 @@ import {cloneDeep} from "lodash-es";
import Backgorund from "@/components/Backgorund.vue";
import useTheme from "@/hooks/useTheme.ts";
import * as localforage from "localforage";
import {useStartKeyboardEventListener} from "@/hooks/event.ts";
const store = useBaseStore()
const runtimeStore = useRuntimeStore()
@@ -33,6 +34,7 @@ watch(settingStore.$state, (n) => {
//检测几个特定词典
watch(store.collect.originWords, (n) => {
console.log('watch(store.collect.originWords', n)
store.collect.words = cloneDeep(n)
store.collect.chapterWords = [store.collect.words]
})
@@ -59,7 +61,7 @@ onMounted(() => {
init()
})
// useStartKeyboardEventListener()
useStartKeyboardEventListener()
</script>