fix: theme mode base on device condition
This commit is contained in:
parent
613a5759a9
commit
3f3eee3113
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ function changeMode(mode: string) {
|
|||
window
|
||||
.matchMedia('(prefers-color-scheme: dark)')
|
||||
.addEventListener('change', () => {
|
||||
changeMode('baseOnDevice');
|
||||
if (themeMode.value[2].isActive) changeMode('baseOnDevice');
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue