diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index 9c5b6da8c2..d63cd94986 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -245,18 +245,10 @@ export default { component.propValue = propValue } }) + } else { + component = deepCopy(ApplicationContext.getService(componentInfo.id)) } - debugger - // 其他组件设置 - // componentList.forEach(componentTemp => { - // if (componentInfo.id === componentTemp.id) { - // component = deepCopy(componentTemp) - // } - // }) - - component = deepCopy(ApplicationContext.getService(componentInfo.id)) - component.style.top = e.offsetY component.style.left = e.offsetX component.id = newComponentId