fix: 修复在页面回退操作后, 可以同时展示多个模态框的问题

This commit is contained in:
lihao.ylh 2021-11-29 14:11:24 +08:00
parent c2f9c12e41
commit cd9a991fbb

View File

@ -53,7 +53,7 @@ export class DocumentModel {
/**
*
*/
readonly modalNodesManager: ModalNodesManager;
private modalNodesManager: ModalNodesManager;
private _nodesMap = new Map<string, Node>();
@ -369,7 +369,7 @@ export class DocumentModel {
this.internalRemoveAndPurgeNode(node, true);
});
this.rootNode?.import(schema as any, checkId);
this.modalNodesManager = new ModalNodesManager(this);
// todo: select added and active track added
if (drillDownNodeId) {
this.drillDown(this.getNode(drillDownNodeId));