Compare commits

...

1 Commits

Author SHA1 Message Date
7b9c7c3528 fix switch problem in mobile and installation step (#1262) 2023-08-24 11:21:27 +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) => {