forked from github/dataease
Merge pull request #1570 from dataease/pr@dev@feat-mobile-reset
refactor: 过滤组件初始化优化,适配历史过滤组件
This commit is contained in:
commit
f582cb3d83
@ -314,7 +314,7 @@ export default {
|
||||
created() {
|
||||
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.attrs && item.options.attrs.default && item.options.attrs.default.isDynamic))
|
||||
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))
|
||||
hasFilter || this.getData(this.element.propValue.viewId, false)
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user