forked from github/dataease
Merge pull request #3602 from dataease/pr@dev@fix_filter_button_copy
fix(仪表板): 复用查询按钮后关联组件显示错误
This commit is contained in:
commit
c7a4982195
@ -623,6 +623,13 @@ const data = {
|
||||
},
|
||||
addCurMultiplexingComponent(state, { component, componentId }) {
|
||||
if (componentId) {
|
||||
if (component.type === 'custom-button' && component.serviceName === 'buttonSureWidget') {
|
||||
const copyComponent = deepCopy(component)
|
||||
copyComponent.options.attrs.customRange = false
|
||||
copyComponent.options.attrs.filterIds = []
|
||||
state.curMultiplexingComponents[componentId] = copyComponent
|
||||
return
|
||||
}
|
||||
state.curMultiplexingComponents[componentId] = component
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user