diff --git a/packages/switch/src/index.vue b/packages/switch/src/index.vue index 963b6015f9..1b2710d8c0 100644 --- a/packages/switch/src/index.vue +++ b/packages/switch/src/index.vue @@ -242,7 +242,7 @@ export default defineComponent({ } onMounted(() => { - if (props.activeValue || props.inactiveValue) { + if (props.activeColor || props.inactiveColor) { setBackgroundColor() }