fix: toggleDark not works (#66)

This commit is contained in:
云游君 authored and GitHub committed 2022-11-17 01:20:17 +08:00
1 parent e2b9e7d23d
commit e92eb66e52
1 file changed
+1 -1
+1 -1
View File
@@ -2,7 +2,7 @@
const color = useColorMode() const color = useColorMode()
function toggleDark() { function toggleDark() {
color.preference = color.value === 'dark' ? 'light' : 'dark' color.value = color.value === 'dark' ? 'light' : 'dark'
} }
</script> </script>