fix switch problem in mobile and installation step

This commit is contained in:
yashkanakiya
2023-08-23 14:22:32 +05:30
parent d1ab4a8021
commit 9d49d7f1b1

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