From e3c6b951dcbfdafb5e32fa7656a8453e8fb39b81 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 31 Mar 2021 16:35:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E5=92=8C=E7=BB=84=E4=BB=B6=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/edit/index.vue | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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