fix font settings
This commit is contained in:
parent
63b4586c0f
commit
b2ec9cb890
2 changed files with 4 additions and 10 deletions
|
|
@ -69,14 +69,8 @@ const GeneralTab = {
|
|||
},
|
||||
updateFont(key, value) {
|
||||
useLocalConfigStore().set({
|
||||
path: 'theme3hacks',
|
||||
value: {
|
||||
...this.mergedConfig.theme3hacks,
|
||||
fonts: {
|
||||
...this.mergedConfig.theme3hacks.fonts,
|
||||
[key]: value,
|
||||
},
|
||||
},
|
||||
path: `theme3hacks.fonts.${key}`,
|
||||
value,
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ export const useLocalConfigStore = defineStore('local_config', {
|
|||
set(this.prefsStorage, path, undefined)
|
||||
},
|
||||
clearLocalConfig() {
|
||||
const blankState = { ...cloneDeep(defaultState) }
|
||||
Object.keys(this).forEach((k) => {
|
||||
this.prefsStorage[k] = blankState[k]
|
||||
this.prefsStorage[k] = undefined
|
||||
this.tempStorage[k] = undefined
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue