From 0a701501d2d1868e36398b04b5aee5a5861acbf5 Mon Sep 17 00:00:00 2001 From: AndyJin Date: Wed, 12 Jul 2023 09:51:57 +0800 Subject: [PATCH] fix: the action of history would not update outline tree --- packages/designer/src/document/document-model.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/designer/src/document/document-model.ts b/packages/designer/src/document/document-model.ts index 9521fef38..7af087ea8 100644 --- a/packages/designer/src/document/document-model.ts +++ b/packages/designer/src/document/document-model.ts @@ -336,6 +336,9 @@ export class DocumentModel implements IDocumentModel { (schema) => { this.import(schema as IPublicTypeRootSchema, true); this.simulator?.rerender(); + this.designer.editor?.eventBus.emit(EDITOR_EVENT.NODE_CHILDREN_CHANGE, { + node: this.rootNode, + }); }, this, );