diff --git a/core/core-frontend/src/custom-component/v-query/Component.vue b/core/core-frontend/src/custom-component/v-query/Component.vue index 15154a9894..a7495f583a 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -459,10 +459,10 @@ const resetData = () => { ;(props.element.cascade || []).forEach(ele => { ele.forEach(item => { const comId = item.datasetId.split('--')[1] - if (next.id === comId && ![null, undefined].includes(next.selectValue)) { + if (next.id === comId) { item.currentSelectValue = Array.isArray(next.selectValue) ? next.selectValue - : [next.selectValue] + : [next.selectValue].map(itx => ![null, undefined].includes(itx)) useEmitt().emitter.emit(`${item.datasetId.split('--')[1]}-select`) } })