Merge pull request #1486 from dataease/pr@dev@fix_input_search

fix: 文字搜索组件报错
This commit is contained in:
fit2cloud-chenyw 2021-12-21 11:57:15 +08:00 committed by GitHub
commit d9a0ce289b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ export default {
setCondition() { setCondition() {
const param = { const param = {
component: this.element, component: this.element,
value: !this.value ? [] : [this.value], value: !this.value ? [] : Array.isArray(this.value) ? this.value : [this.value],
operator: this.operator operator: this.operator
} }
this.inDraw && this.$store.commit('addViewFilter', param) this.inDraw && this.$store.commit('addViewFilter', param)