feat:save

This commit is contained in:
zyronon
2025-08-06 01:04:34 +08:00
parent 83a0d846e0
commit d53863d96f
10 changed files with 99 additions and 39 deletions

View File

@@ -18,6 +18,7 @@ const settingStore = useSettingStore()
const {setTheme} = useTheme()
watch(store.$state, (n: BaseState) => {
console.log('watch(store.$state,')
localforage.setItem(SAVE_DICT_KEY.key, JSON.stringify({val: shakeCommonDict(n), version: SAVE_DICT_KEY.version}))
})