Commit 6da66644 authored by Bill's avatar Bill

fix: 修改活动自定义区块label

parent 392f3145
......@@ -204,7 +204,7 @@ const createComponent = (
props: isDept
? omit(current, ['childrenData'])
: specialKey && specialKey === otherProps[floor - 1].type
? { label: labels[`${childProps}-${rest.join("-")}`] || [] , ...childProps }
? { label: labels[`${rest.join("-")}-${childProps.id}`] || [] , ...childProps }
: childProps,
otherProps: otherProps[floor - 1],
childNodes: parentChildKeys,
......
......@@ -109,7 +109,7 @@ const CombinationItem: React.FC<any> = (props: any) => {
<div className={styles['simple-product-label']}>
{activityList.map((_item) => {
return (
<CustomizeTag>{_item.label}</CustomizeTag>
<CustomizeTag key={_item.label}>{_item.label}</CustomizeTag>
)
})}
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment