diff --git a/src/components/common/common-styles/index.vue b/src/components/common/common-styles/index.vue index 3fe0bbfe..169322fe 100644 --- a/src/components/common/common-styles/index.vue +++ b/src/components/common/common-styles/index.vue @@ -63,7 +63,7 @@ const props = defineProps({ value: { type: Object, default: () => ({}), - }, + } }); // 初始化表单数据 const init_form = reactive({ diff --git a/src/components/model-coupon/model-coupon-setting.vue b/src/components/model-coupon/model-coupon-setting.vue index e93a50d9..ee315a64 100644 --- a/src/components/model-coupon/model-coupon-setting.vue +++ b/src/components/model-coupon/model-coupon-setting.vue @@ -118,7 +118,7 @@ const default_config = { }; const change_theme = (val: string) => { if (val) { - form.value.style = (default_config.style)[`theme_${Number(val) + 1}`]; + form.value.style = Object.assign({}, form.value.style, (default_config.style)[`theme_${Number(val) + 1}`]); } };