From ad64fd7e3572540553388297707ee73c54a62b40 Mon Sep 17 00:00:00 2001 From: Lee94 Date: Thu, 2 Mar 2023 12:25:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?JSY-27224=20=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/structure/tree.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/structure/tree.js b/src/core/structure/tree.js index 32e7665b4..839b51bec 100644 --- a/src/core/structure/tree.js +++ b/src/core/structure/tree.js @@ -127,7 +127,9 @@ continue; } if (temp != null) { - queue = queue.concat(temp.getChildren()); + BI.each(temp.getChildren(), function(_i, t) { + queue.push(t); + }) } } }, From b2d14f16a6d208e834dfe06bad0dd50a4499374e Mon Sep 17 00:00:00 2001 From: Lee94 Date: Thu, 2 Mar 2023 13:44:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20es6?= =?UTF-8?q?=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/structure/tree.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/structure/tree.js b/src/core/structure/tree.js index 839b51bec..d79ac99ef 100644 --- a/src/core/structure/tree.js +++ b/src/core/structure/tree.js @@ -127,9 +127,7 @@ continue; } if (temp != null) { - BI.each(temp.getChildren(), function(_i, t) { - queue.push(t); - }) + queue.push(...temp.getChildren()); } } },