From 1dc2d844f4cf47d684909a46064d25765b5ce8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 28 Aug 2024 17:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/common-styles/index.vue | 2 +- src/components/model-coupon/model-coupon-setting.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}`]); } };