From f84ea68e9943ce0b2a353e15ca9bf58ac3b548ef Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 24 Mar 2023 16:57:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=A6=96=E6=AC=A1=E6=96=B0=E5=BB=BA=E7=9A=84=E4=BB=AA?= =?UTF-8?q?=E8=A1=A8=E6=9D=BF=E4=B8=8D=E5=88=B7=E6=96=B0=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=A7=BB=E5=8A=A8=E9=80=A0=E6=88=90=E5=86=85?= =?UTF-8?q?=E9=83=A8=E8=A7=86=E5=9B=BE=E4=B8=A2=E5=A4=B1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/utils/utils.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/canvas/utils/utils.js b/frontend/src/components/canvas/utils/utils.js index 11b0a94811..5fadb1707a 100644 --- a/frontend/src/components/canvas/utils/utils.js +++ b/frontend/src/components/canvas/utils/utils.js @@ -373,7 +373,12 @@ export function insertBatchTreeNode(nodeInfoArray, tree) { } } -export function updateCacheTree(opt, treeName, nodeInfo, tree) { +export function updateCacheTree(opt, treeName, nodeInfoFull, tree) { + const nodeInfo = { + ...nodeInfoFull, + panelData: null, + panelStyle: null + } if (opt === 'new' || opt === 'copy') { insertTreeNode(nodeInfo, tree) } else if (opt === 'move') {