Compare commits

...

1 Commits

Author SHA1 Message Date
9d49d7f1b1 fix switch problem in mobile and installation step 2023-08-23 14:22:32 +05:30

View File

@ -16,6 +16,13 @@ defineProps({
const globalStore = useGlobalStore()
const isDark = ref(
localStorage.getItem('theme') === 'dark'
|| document.documentElement.classList.contains('dark'),
)
globalStore.isDarkModeOn = isDark
const enabled = computed({
get: () => globalStore.isDarkModeOn,
set: (value) => {