mirror of
https://github.com/fmhy/edit.git
synced 2025-11-28 00:41:20 +11:00
Update AMOLED toggle to use v-model for binding
this makes sure that the toggle doesnt revert back to being off after reloading this was an issue that i couldnt test out where the toggle would revert back to the off state while the page remained in the amoled state
This commit is contained in:
parent
02d6f13a1d
commit
6e465712d5
1 changed files with 2 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ const normalizeColorName = (colorName: string) =>
|
|||
<!-- AMOLED toggle -->
|
||||
<div class="mt-4 flex items-center gap-2">
|
||||
<span class="text-sm text-$vp-c-text-2">AMOLED</span>
|
||||
<Switch @click="isAmoledMode = !isAmoledMode" />
|
||||
<Switch v-model="isAmoledMode" @click="isAmoledMode = !isAmoledMode" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue