fix(color-scheme): set color scheme dummy value to null

Set the initial value of the color scheme ref to null to make setting it
to the actual value trigger a change if the color scheme is auto.
This commit is contained in:
2026-08-06 15:06:30 +02:00
parent 7b09cd74cb
commit 30f6b82416
+1 -1
View File
@@ -26,7 +26,7 @@ import { useRoute } from 'vue-router';
const route = useRoute();
const { getColorScheme, updateColorScheme } = useColorScheme();
const colorScheme = ref('auto');
const colorScheme = ref(null);
provide('colorScheme', colorScheme);
watch(colorScheme, (newValue) => {
updateColorScheme(newValue);