From 1d9ce6ab0b78ab63732c8b35bfd042940c8b9b31 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 28 Nov 2024 13:19:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=97=B6=E5=8F=AF=E8=83=BD=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=9A=84=E6=A0=B7=E5=BC=8F=E5=BD=B1=E5=93=8D=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E9=97=AE=E9=A2=98=20#13299?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/editor/index.vue | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/index.vue b/core/core-frontend/src/views/chart/components/editor/index.vue index 46922f80db..4aab39b245 100644 --- a/core/core-frontend/src/views/chart/components/editor/index.vue +++ b/core/core-frontend/src/views/chart/components/editor/index.vue @@ -1102,13 +1102,19 @@ const onFunctionCfgChange = val => { } const onBackgroundChange = val => { - curComponent.value.commonBackground = val - if (mobileInPc.value) { - //移动端设计 - useEmitt().emitter.emit('onMobileStatusChange', { - type: 'componentStyleChange', - value: { type: 'commonBackground', component: JSON.parse(JSON.stringify(curComponent.value)) } - }) + // 修复#13299 + if (curComponent.value.id === view.value?.id) { + curComponent.value.commonBackground = val + if (mobileInPc.value) { + //移动端设计 + useEmitt().emitter.emit('onMobileStatusChange', { + type: 'componentStyleChange', + value: { + type: 'commonBackground', + component: JSON.parse(JSON.stringify(curComponent.value)) + } + }) + } } }