From 86320151192b30b38000888d368241ba68ad75c1 Mon Sep 17 00:00:00 2001 From: yell Date: Mon, 7 Feb 2022 16:46:55 +0900 Subject: [PATCH] =?UTF-8?q?[#1061]=20TreeGrid=20Child=20Nodes=20=EB=AC=B4?= =?UTF-8?q?=ED=95=9C=20=EB=A3=A8=ED=94=84=20=EC=9D=B4=EC=8A=88=20#########?= =?UTF-8?q?####=20-=20Node=20=EC=9D=98=20children=20=EA=B0=9D=EC=B2=B4?= =?UTF-8?q?=EB=A5=BC=20=EB=94=A5=ED=81=B4=EB=A1=A0=ED=95=98=EC=97=AC=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/treeGrid/uses.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/treeGrid/uses.js b/src/components/treeGrid/uses.js index 2fc0b447f..bee03a4b1 100644 --- a/src/components/treeGrid/uses.js +++ b/src/components/treeGrid/uses.js @@ -1,4 +1,5 @@ import { getCurrentInstance, nextTick } from 'vue'; +import { cloneDeep } from 'lodash-es'; import { numberWithComma } from '@/common/utils'; export const commonFunctions = () => { @@ -613,6 +614,7 @@ export const treeEvent = (params) => { } if (node.children) { node.hasChild = true; + node.children = cloneDeep(node.children); node.children.forEach(child => setNodeData({ node: child,