fix(ConfigProvider): dark mode not work as default value (#10413)

This commit is contained in:
neverland
2022-03-19 19:42:28 +08:00
committed by GitHub
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 }
);
}