fix(仪表板): 下拉过滤器排序字段出现sql注入参数后依然能够点击确认

This commit is contained in:
fit2cloud-chenyw 2022-07-03 21:43:38 +08:00
parent da9d8d19ae
commit 7aa833d048

View File

@ -128,6 +128,8 @@ export default {
this.element.options.attrs.fieldId.length > 0 &&
method(param).then(res => {
this.datas = this.optionDatas(res.data)
}).catch(e => {
bus.$emit('valid-values-change', false)
}) || (this.element.options.value = '')
},
'element.options.attrs.multiple': function(value, old) {
@ -167,6 +169,8 @@ export default {
this.show = true
this.handleCoustomStyle()
})
}).catch(e => {
bus.$emit('valid-values-change', false)
}) || (this.element.options.value = '')
}
@ -222,6 +226,8 @@ export default {
}
method({ fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort }).then(res => {
this.datas = this.optionDatas(res.data)
}).catch(e => {
bus.$emit('valid-values-change', false)
})
}
if (this.element.options.value) {