fix: 区块模板切换之后数据不显示

This commit is contained in:
mario.gk 2020-06-23 12:00:04 +08:00
parent a67850f79c
commit 292c1c38d3

View File

@ -154,6 +154,9 @@ export default class Panel implements IWidget {
}
this.emitter.emit('activechange', true);
} else if (this.inited) {
if (this.parent?.name && this.name.startsWith(this.parent.name)) {
this.inited = false;
}
this._actived = false;
this.parent?.unactive(this);
this.emitter.emit('activechange', false);