diff --git a/packages/effects/layouts/src/widgets/color-toggle.vue b/packages/effects/layouts/src/widgets/color-toggle.vue index 65483877125..67cad31f6c9 100644 --- a/packages/effects/layouts/src/widgets/color-toggle.vue +++ b/packages/effects/layouts/src/widgets/color-toggle.vue @@ -13,10 +13,11 @@ defineOptions({ name: 'AuthenticationColorToggle', }); -function handleUpdate(value: BuiltinThemeType) { +function handleUpdate(colorPrimary: string, type: BuiltinThemeType) { updatePreferences({ theme: { - builtinType: value, + colorPrimary, + builtinType: type, }, }); } @@ -30,7 +31,7 @@ function handleUpdate(value: BuiltinThemeType) {