fix: color.preference by @nuxtjs/color-mode@3.2.0 (#69)

This commit is contained in:
云游君 authored and GitHub committed 2022-11-29 20:46:38 +08:00
1 parent fe93f8d166
commit a814625790
3 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
const color = useColorMode()
function toggleDark() {
color.value = color.value === 'dark' ? 'light' : 'dark'
color.preference = color.value === 'dark' ? 'light' : 'dark'
}
</script>