fix: 【ID1004278】【仪表板】时间过滤组件-日期,选择日期没反应

This commit is contained in:
fit2cloud-chenyw 2021-06-11 09:51:17 +08:00
parent 09d60f7fd9
commit 1c7fde3f5a

View File

@ -35,6 +35,9 @@ export default {
},
created() {
this.options = this.element.options
if ((this.options.attrs.type === 'date' || this.options.attrs.type === 'daterange') && Array.isArray(this.options.value) && this.options.value.length === 0) {
this.options.value = null
}
},
methods: {
search() {