fix: 下拉过滤器选择排序字段后切换选项字段下拉框消失

This commit is contained in:
fit2cloud-chenyw 2023-11-13 16:45:10 +08:00
parent 4e18f11f8c
commit bcf8d0b3f9

View File

@ -220,6 +220,7 @@ export default {
method = linkMultFieldValues
}
if (!this.element.options.attrs.fieldId) {
this.show = true
return
}
const param = { fieldIds: this.element.options.attrs.fieldId.split(this.separator), sort: this.element.options.attrs.sort }
@ -238,6 +239,8 @@ export default {
bus.$emit('valid-values-change', true)
}).catch(e => {
bus.$emit('valid-values-change', false)
}).finally(() => {
this.show = true
}) || (this.element.options.value = '')
}