mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-27 19:51:09 -04:00 
			
		
		
		
	fix switch problem in mobile and installation step (#1262)
This commit is contained in:
		| @ -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) => { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user