forked from github/dataease
fix(嵌入式): 修复同一图表多次嵌入参数发送时相互影响问题
This commit is contained in:
parent
51dfb8de76
commit
858630111e
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user