fix: data (#240)

This commit is contained in:
Fine0830 2023-02-24 17:46:46 +08:00 committed by GitHub
parent 220525a2d9
commit 5cc913a332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ limitations under the License. -->
} }
function processTree(arr: StackElement[]) { function processTree(arr: StackElement[]) {
const copyArr = (window as any).structuredClone(arr); const copyArr = JSON.parse(JSON.stringify(arr));
const obj: any = {}; const obj: any = {};
let res = null; let res = null;
for (const item of copyArr) { for (const item of copyArr) {