mirror of
https://github.com/lstoeferle/vite-vue2-starter
synced 2025-02-23 13:12:18 +08:00
fix: dark mode toggle
This commit is contained in:
parent
4bcbe41a39
commit
b73d452aee
@ -44,7 +44,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<button
|
<button
|
||||||
class="flex items-center justify-center w-9 h-9 focus:outline-none"
|
class="flex items-center justify-center w-9 h-9 focus:outline-none"
|
||||||
@click="toggle"
|
@click="toggle()"
|
||||||
>
|
>
|
||||||
<MdiWhiteBalanceSunny v-if="isDark" class="text-yellow-500" />
|
<MdiWhiteBalanceSunny v-if="isDark" class="text-yellow-500" />
|
||||||
<MdiMoonWaningCrescent v-else class="text-gray-800" />
|
<MdiMoonWaningCrescent v-else class="text-gray-800" />
|
||||||
|
Loading…
Reference in New Issue
Block a user