Optimize UI interface

This commit is contained in:
zyronon
2023-11-02 18:47:21 +08:00
parent 5e4684a2c9
commit 35b13bf1a4
8 changed files with 418 additions and 362 deletions

View File

@@ -41,9 +41,12 @@ watch(store.wrong.originWords, (n) => {
useStartKeyboardEventListener()
onMounted(() => {
store.init()
settingStore.init()
setTheme(settingStore.theme)
console.time()
Promise.allSettled([store.init(), settingStore.init()]).then(e => {
store.load = true
setTheme(settingStore.theme)
console.timeEnd()
})
})
useEventListener('keyup', (e: KeyboardEvent) => {