From fdada413272450cc76c5faa4e40b1186562815e3 Mon Sep 17 00:00:00 2001 From: liuzhanghao <3443718488@qq.com> Date: Thu, 1 Sep 2022 10:22:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BA=8C=E7=BA=A7=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=90=8E=E6=97=A0=E5=AD=90=E8=8A=82=E7=82=B9=EF=BC=8C=E5=B1=95?= =?UTF-8?q?=E5=BC=80=E6=89=80=E6=9C=89/=E6=94=B6=E8=B5=B7=E6=89=80?= =?UTF-8?q?=E6=9C=89=E6=93=8D=E4=BD=9C=E5=90=8E=E7=9A=84=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/Node.js | 1 + web/package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/simple-mind-map/src/Node.js b/simple-mind-map/src/Node.js index 117fc6c2..d00867a3 100644 --- a/simple-mind-map/src/Node.js +++ b/simple-mind-map/src/Node.js @@ -990,6 +990,7 @@ class Node { * @Desc: 创建或更新展开收缩按钮内容 */ updateExpandBtnNode() { + if (this.children.length === 0) return if (this._expandBtn) { this._expandBtn.clear() } diff --git a/web/package.json b/web/package.json index 1315a3b5..9279d3b2 100644 --- a/web/package.json +++ b/web/package.json @@ -12,6 +12,7 @@ "@toast-ui/editor": "^3.1.5", "core-js": "^3.6.5", "element-ui": "^2.15.1", + "simple-mind-map": "^0.2.3", "vue": "^2.6.11", "vue-router": "^3.5.1", "vuex": "^3.6.2"