fix switch problem in mobile and installation step (#1262)

This commit is contained in:
Yash Kanakiya
2023-08-24 11:21:27 +05:30
committed by GitHub
parent d1ab4a8021
commit 7b9c7c3528

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) => {