fix(theme): fix hybrid mismatch (#763)

This commit is contained in:
pengzhanbo 2025-12-01 11:29:26 +08:00 committed by GitHub
parent 6a3babcf76
commit 41d2a81a09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ export function useCssVar(
const variable = shallowRef(initialValue)
function updateCssVar() {
const _window = typeof window ? window : null
const _window = typeof window !== 'undefined' ? window : null
const target = _window?.document?.documentElement
const key = toValue(prop)
if (target && key) {