fix: toggleDark not works (#66)
This commit is contained in:
1 file changed
+1
-1
@@ -2,7 +2,7 @@
|
||||
const color = useColorMode()
|
||||
|
||||
function toggleDark() {
|
||||
color.preference = color.value === 'dark' ? 'light' : 'dark'
|
||||
color.value = color.value === 'dark' ? 'light' : 'dark'
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user