fix: color mode (#33)

This commit is contained in:
Hasan Demirtaş authored and GitHub committed 2022-04-20 23:27:38 +08:00
1 parent 46175373e9
commit 7bfa84d907
1 file changed
+1 -1
+1 -1
View File
@@ -1,7 +1,7 @@
<script setup lang='ts'>
const color = useColorMode()
function toggleDark() {
color.value = color.value === 'dark' ? 'light' : 'dark'
color.preference = color.preference === 'dark' ? 'light' : 'dark'
}
</script>