From 6bcead77849aeb4cb6d28fa7d70ebe33b2aa8e35 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Thu, 10 Aug 2023 08:50:26 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=9C=A8?= =?UTF-8?q?=E5=A4=A7=E7=BA=B2=E4=B8=AD=E6=8F=92=E5=85=A5=E6=96=B0=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Edit/components/Outline.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/src/pages/Edit/components/Outline.vue b/web/src/pages/Edit/components/Outline.vue index 44723a1c..87e2b9ca 100644 --- a/web/src/pages/Edit/components/Outline.vue +++ b/web/src/pages/Edit/components/Outline.vue @@ -61,7 +61,7 @@ export default { }, currentData: null, notHandleDataChange: false, - handleNodeTreeRenderEnd: false, + isHandleNodeTreeRenderEnd: false, beInsertNodeUid: '', insertType: '', isInTreArea: false, @@ -106,8 +106,8 @@ export default { return } // 插入了新节点后需要做一些操作 - if (this.handleNodeTreeRenderEnd) { - this.handleNodeTreeRenderEnd = false + if (this.isHandleNodeTreeRenderEnd) { + this.isHandleNodeTreeRenderEnd = false this.refresh() this.$nextTick(() => { this.afterCreateNewNode() @@ -236,7 +236,7 @@ export default { // 插入兄弟节点 insertNode() { this.notHandleDataChange = true - this.handleNodeTreeRenderEnd = true + this.isHandleNodeTreeRenderEnd = true this.beInsertNodeUid = createUid() this.mindMap.execCommand('INSERT_NODE', false, [], { uid: this.beInsertNodeUid @@ -246,7 +246,7 @@ export default { // 插入下级节点 insertChildNode() { this.notHandleDataChange = true - this.handleNodeTreeRenderEnd = true + this.isHandleNodeTreeRenderEnd = true this.beInsertNodeUid = createUid() this.mindMap.execCommand('INSERT_CHILD_NODE', false, [], { uid: this.beInsertNodeUid