Skip to content

Commit

Permalink
fix: 🐛 Abnormal terminal theme
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Nov 14, 2023
1 parent 2eb380b commit 20d37c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default {
},
computed: {
invert() {
return this.$store.theme.value !== 'dark'
return !this.$store.theme.isDark
},
},
watch: {
Expand Down
2 changes: 2 additions & 0 deletions src/store/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export const useThemeStore = defineStore({

await systemTheme('update', value)

this.isDark = await systemTheme('isDark')

await this.updateHtml(value)
},

Expand Down

0 comments on commit 20d37c1

Please sign in to comment.