mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -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 globalStore = useGlobalStore()
|
||||||
|
|
||||||
|
const isDark = ref(
|
||||||
|
localStorage.getItem('theme') === 'dark'
|
||||||
|
|| document.documentElement.classList.contains('dark'),
|
||||||
|
)
|
||||||
|
|
||||||
|
globalStore.isDarkModeOn = isDark
|
||||||
|
|
||||||
const enabled = computed({
|
const enabled = computed({
|
||||||
get: () => globalStore.isDarkModeOn,
|
get: () => globalStore.isDarkModeOn,
|
||||||
set: (value) => {
|
set: (value) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user