fix 二级节点后无子节点,展开所有/收起所有操作后的报错信息
This commit is contained in:
parent
46d44e6753
commit
fdada41327
@ -990,6 +990,7 @@ class Node {
|
|||||||
* @Desc: 创建或更新展开收缩按钮内容
|
* @Desc: 创建或更新展开收缩按钮内容
|
||||||
*/
|
*/
|
||||||
updateExpandBtnNode() {
|
updateExpandBtnNode() {
|
||||||
|
if (this.children.length === 0) return
|
||||||
if (this._expandBtn) {
|
if (this._expandBtn) {
|
||||||
this._expandBtn.clear()
|
this._expandBtn.clear()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
"@toast-ui/editor": "^3.1.5",
|
"@toast-ui/editor": "^3.1.5",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
"element-ui": "^2.15.1",
|
"element-ui": "^2.15.1",
|
||||||
|
"simple-mind-map": "^0.2.3",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
"vue-router": "^3.5.1",
|
"vue-router": "^3.5.1",
|
||||||
"vuex": "^3.6.2"
|
"vuex": "^3.6.2"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user