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')