diff --git a/components/lib/basedirective/BaseDirective.js b/components/lib/basedirective/BaseDirective.js index 1e1229286..b41b9011a 100644 --- a/components/lib/basedirective/BaseDirective.js +++ b/components/lib/basedirective/BaseDirective.js @@ -78,8 +78,7 @@ const BaseDirective = { const preset = instance.globalPresetCTheme(); if (preset) { - const { variables } = preset; - const { colorScheme, ...vRest } = variables || {}; + const { colorScheme, ...vRest } = preset; const { dark, ...csRest } = colorScheme || {}; const vRest_css = ObjectUtils.isNotEmpty(vRest) ? toVariables({ [instance.$name]: vRest }).css : ''; const csRest_css = ObjectUtils.isNotEmpty(csRest) ? toVariables({ [instance.$name]: csRest }).css : '';