fix: tabs组件多个选项卡过滤条件逻辑错误

This commit is contained in:
fit2cloud-chenyw 2022-04-08 13:54:30 +08:00
parent 50a1c18eb2
commit 4463c86216

View File

@ -274,6 +274,13 @@ export default {
const components = deepCopy(this.componentData)
components.forEach(view => {
if (view.filters && view.filters.length > 0) { view.filters = [] }
if (view.type === 'de-tabs') {
view.options.tabList && view.options.tabList.length > 0 && view.options.tabList.forEach(tab => {
if (tab.content && tab.content.filters && tab.content.filters.length > 0) {
tab.content.filters = []
}
})
}
})
//
requestInfo.panelData = JSON.stringify(components)