fix(查询组件): 查询组件级联的级联状态不能重置 #12885

This commit is contained in:
dataeaseShu 2024-10-28 11:30:34 +08:00
parent c652f91b67
commit 65565832a6

View File

@ -459,9 +459,7 @@ const resetData = () => {
;(props.element.cascade || []).forEach(ele => {
ele.forEach(item => {
const comId = item.datasetId.split('--')[1]
console.log('comId', comId)
if (next.id === comId) {
if (next.id === comId && ![null, undefined].includes(next.selectValue)) {
item.currentSelectValue = Array.isArray(next.selectValue)
? next.selectValue
: [next.selectValue]