fix(style-vars): apply css vars in post flush effect
This commit is contained in:
parent
713fcb18a9
commit
3a6b1207fa
@ -30,7 +30,7 @@ export function useCssVars(
|
|||||||
|
|
||||||
const setVars = () =>
|
const setVars = () =>
|
||||||
setVarsOnVNode(instance.subTree, getter(instance.proxy!), prefix)
|
setVarsOnVNode(instance.subTree, getter(instance.proxy!), prefix)
|
||||||
onMounted(() => watchEffect(setVars))
|
onMounted(() => watchEffect(setVars, { flush: 'post' }))
|
||||||
onUpdated(setVars)
|
onUpdated(setVars)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user