- Dialog关闭并不是删除了这个界面,而是触发了‘hide’这个事件,下次用就不用重新加载了。树在new的时候定义了tree的id并添加到了registry里如果不删除再新建一个就会导致id重复。在dialog ‘hide’的时候要记得把需要重置的删除。
on(this, 'hide', function (/*e*/) {
if (this.tree) {
this.tree.destroy();
}
if (this.UXSPGrid) {
this.UXSPGrid.destroy();
}
this.destroyDescendants();
});