fix: toggleDark not works (#66)
This commit is contained in:
1 file changed
+1
-1
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user