From 9b7efcb5af95cba4633732cb47ebd01c2362fff1 Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Fri, 25 Feb 2022 18:11:08 +0800 Subject: [PATCH] deepCopy --- src/views/Transaction.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index 33f652a..095beda 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -679,7 +679,7 @@ export default { getTreeData() { // 获取树结构数据 if(this.treeDataStore.length) { - const tmp = [...this.treeDataStore] + const tmp = deepCopy(this.treeDataStore) this.treeData = this.toTreeId(tmp, this.treeDataStore[0].parentId); if (this.$route.query.lcId) { this.lcId = this.$route.query.lcId;