mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 21:42:32 +08:00
fix(仪表板): 复用查询按钮后关联组件显示错误
This commit is contained in:
@@ -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
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user