🐛 (user settings) reset user settings with tree

This commit is contained in:
2021-03-24 22:48:13 +01:00
parent 32ff23c230
commit 935acb6813
2 changed files with 2 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ export const useUserRepoStore = defineStore({
resetFiles() { resetFiles() {
this.files = [] this.files = []
this.readme = null this.readme = null
this.userSettings = null
} }
} }
}) })

View File

@@ -7,6 +7,7 @@ export const useUserSettings = () => {
watchEffect(() => { watchEffect(() => {
const fontFamily = store.userSettings?.fontFamily const fontFamily = store.userSettings?.fontFamily
const root = document.documentElement const root = document.documentElement
if (fontFamily) { if (fontFamily) {
root.style.setProperty('--font-family', fontFamily) root.style.setProperty('--font-family', fontFamily)
} else { } else {