fix: data (#240)

This commit is contained in:
Fine0830
2023-02-24 17:46:46 +08:00
committed by GitHub
parent 220525a2d9
commit 5cc913a332

View File

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