提交 34455d7e authored 作者: wangjiahao's avatar wangjiahao

refactor: 过滤组件初始化优化,适配历史过滤组件

上级 678581d4
......@@ -315,7 +315,7 @@ export default {
this.refId = uuid.v1
if (this.element && this.element.propValue && this.element.propValue.viewId) {
const hasFilter = this.componentData.filter(item => item.type === 'custom').some(item => item.options.value && !(item.options.value instanceof Object) || (item.options.attrs && item.options.attrs.default && item.options.attrs.default.isDynamic))
if (hasFilter || this.filters.length > 0) { this.getData(this.element.propValue.viewId, false) }
if (!hasFilter || this.filters.length > 0) { this.getData(this.element.propValue.viewId, false) }
}
},
methods: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论