From 858630111e7b4cb7e842f8855326d0bbd6fa1db6 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 21 Oct 2024 18:32:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=90=8C=E4=B8=80=E5=9B=BE=E8=A1=A8=E5=A4=9A=E6=AC=A1?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E5=8F=82=E6=95=B0=E5=8F=91=E9=80=81=E6=97=B6?= =?UTF-8?q?=E7=9B=B8=E4=BA=92=E5=BD=B1=E5=93=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/pages/panel/ViewWrapper.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/pages/panel/ViewWrapper.vue b/core/core-frontend/src/pages/panel/ViewWrapper.vue index 15cc328432..55ef838011 100644 --- a/core/core-frontend/src/pages/panel/ViewWrapper.vue +++ b/core/core-frontend/src/pages/panel/ViewWrapper.vue @@ -36,8 +36,14 @@ const embeddedParams = embeddedParamsDiv?.chartId ? embeddedParamsDiv : embedded // 目标校验: 需要校验targetSourceId 是否是当前可视化资源ID const winMsgHandle = event => { const msgInfo = event.data + // 校验targetSourceId - if (msgInfo && msgInfo.type === 'attachParams' && msgInfo.targetSourceId === state.chartId + '') { + if ( + msgInfo && + msgInfo.type === 'attachParams' && + msgInfo.targetSourceId === state.chartId + '' && + (!msgInfo.suffixId || msgInfo.suffixId === state.suffixId) + ) { const attachParams = msgInfo.params state.initState = false dvMainStore.addOuterParamsFilter(attachParams, state.canvasDataPreview, 'outer')