fix(仪表板): 复用查询按钮后关联组件显示错误

This commit is contained in:
fit2cloud-chenyw 2022-11-02 12:04:09 +08:00
parent 14ca3e0989
commit 9ef9085847

View File

@ -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
}
},