forked from github/dataease
fix(查询组件): 查询组件级联的级联状态不能重置 #12885
This commit is contained in:
parent
c652f91b67
commit
65565832a6
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user