diff --git a/src/views/demo/onlineform/formdesign/FormModal.vue b/src/views/demo/onlineform/formdesign/FormModal.vue index 42d5bf40..963af2c8 100644 --- a/src/views/demo/onlineform/formdesign/FormModal.vue +++ b/src/views/demo/onlineform/formdesign/FormModal.vue @@ -499,7 +499,7 @@ if(Object.keys(item).includes('children')){ item.children = childList[item.field] || [] } - if(Object.keys(item).includes('componentProps')){ + if(item.component === 'CardGroup' && Object.keys(item).includes('componentProps')){ item.componentProps.options = childList[item.field] || [] } let pushItem = {} diff --git a/src/views/demo/onlineform/util.ts b/src/views/demo/onlineform/util.ts index 0beeafe9..d88c2451 100644 --- a/src/views/demo/onlineform/util.ts +++ b/src/views/demo/onlineform/util.ts @@ -9,7 +9,7 @@ export const cardNestStructure = (data) => { if(Object.keys(item).includes('children')){ item.children = childList[item.field] || [] } - if(Object.keys(item).includes('componentProps')){ + if(item.component === 'CardGroup' && Object.keys(item).includes('componentProps')){ item.componentProps.options = childList[item.field] || [] } let pushItem = {}