update
This commit is contained in:
parent
f0b73d635e
commit
798591f6f9
@ -715,7 +715,9 @@ class Node {
|
|||||||
// 销毁节点,不但会从画布删除,而且原节点直接置空,后续无法再插回画布
|
// 销毁节点,不但会从画布删除,而且原节点直接置空,后续无法再插回画布
|
||||||
destroy() {
|
destroy() {
|
||||||
if (!this.group) return
|
if (!this.group) return
|
||||||
this.emptyUser()
|
if (this.emptyUser) {
|
||||||
|
this.emptyUser()
|
||||||
|
}
|
||||||
this.resetWhenDelete()
|
this.resetWhenDelete()
|
||||||
this.group.remove()
|
this.group.remove()
|
||||||
this.removeGeneralization()
|
this.removeGeneralization()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user