mirror of
https://github.com/gotson/komga.git
synced 2026-01-18 14:15:24 +01:00
app store only persist selected keys
This commit is contained in:
parent
4c209f6baa
commit
e31653a310
1 changed files with 6 additions and 1 deletions
|
|
@ -4,10 +4,15 @@ import { useDisplay } from 'vuetify'
|
|||
|
||||
export const useAppStore = defineStore('app', {
|
||||
state: () => ({
|
||||
// persisted
|
||||
drawer: !useDisplay().mobile.value.valueOf(),
|
||||
theme: 'system',
|
||||
rememberMe: false,
|
||||
importBooksPath: '',
|
||||
}),
|
||||
persist: true,
|
||||
persist: {
|
||||
key: 'komga.nextui.app',
|
||||
// explicitly state which keys are stored
|
||||
pick: ['drawer', 'theme', 'rememberMe', 'importBooksPath'],
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue