mounted() { const theme = localStorage.getItem('useDarkTheme'); if (theme) { if (theme == 'true') { setTimeout(() => { this.$vuetify.theme.dark = true; }, 0); } else { setTimeout(() => { this.$vuetify.theme.dark = false; }, 0); } } else if (window.matchMedia('(prefers-color-scheme: dark)').matches) { setTimeout(() => { this.$vuetify.theme.dark = true; }, 0); } }