mirror of
https://github.com/youzan/vant.git
synced 2026-05-17 01:00:36 +08:00
fix(ConfigProvider): dark mode not work as default value (#10413)
This commit is contained in:
@@ -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 }
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user