diff --git a/src/components/Device/components/Terminal/components/TerminalDialog/index.vue b/src/components/Device/components/Terminal/components/TerminalDialog/index.vue index 1a00977b..a605294c 100644 --- a/src/components/Device/components/Terminal/components/TerminalDialog/index.vue +++ b/src/components/Device/components/Terminal/components/TerminalDialog/index.vue @@ -108,7 +108,7 @@ export default { }, computed: { invert() { - return this.$store.theme.value !== 'dark' + return !this.$store.theme.isDark }, }, watch: { diff --git a/src/store/theme/index.js b/src/store/theme/index.js index 58033ef4..6d8faa24 100644 --- a/src/store/theme/index.js +++ b/src/store/theme/index.js @@ -32,6 +32,8 @@ export const useThemeStore = defineStore({ await systemTheme('update', value) + this.isDark = await systemTheme('isDark') + await this.updateHtml(value) },