Commit e641e13a authored by Bill's avatar Bill

fix: 修改活动模块添加/删除处理

parent f0c5751a
......@@ -343,7 +343,10 @@ const WebComponentModule: React.FC<Iprops> = (props: Iprops) => {
})
return;
}
const newKey = Object.keys(pageConfig).length + 1
const childNodes = [...pageConfig[0].childNodes];
childNodes.sort((a, b) => +a - +b);
const newKey = childNodes[childNodes.length - 1] + 1
addChildComponent({
newKey: `${newKey}`,
......
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