mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(ConfigProvider): dark mode not work as default value (#10413)
This commit is contained in:
parent
239be20cbf
commit
d2f6a3c96f
@ -61,7 +61,8 @@ export default defineComponent({
|
||||
(newVal, oldVal) => {
|
||||
document.body.classList.remove(`van-theme-${oldVal}`);
|
||||
document.body.classList.add(`van-theme-${newVal}`);
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user