fix
This commit is contained in:
parent
784ae2edb6
commit
1be0debc63
1 changed files with 4 additions and 3 deletions
|
|
@ -6,7 +6,8 @@ import { useInstanceStore } from 'src/stores/instance'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
LOCAL_DEFAULT_CONFIG,
|
LOCAL_DEFAULT_CONFIG,
|
||||||
LOCAL_DEFAULT_CONFIG_DEFINITIONS
|
LOCAL_DEFAULT_CONFIG_DEFINITIONS,
|
||||||
|
validateSetting,
|
||||||
} from 'src/modules/default_config_state'
|
} from 'src/modules/default_config_state'
|
||||||
|
|
||||||
export const defaultState = {
|
export const defaultState = {
|
||||||
|
|
@ -55,8 +56,8 @@ export const useLocalConfigStore = defineStore('local_config', {
|
||||||
persist: {
|
persist: {
|
||||||
afterLoad(state) {
|
afterLoad(state) {
|
||||||
return {
|
return {
|
||||||
prefsStorage: state.prefsStorage ?? { ...configDefaultState },
|
prefsStorage: state.prefsStorage ?? { ...LOCAL_DEFAULT_CONFIG },
|
||||||
tempStorage: { ...configDefaultState },
|
tempStorage: { ...LOCAL_DEFAULT_CONFIG },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue