fix(editor): 新增页面不用添加历史记录

This commit is contained in:
roymondchen 2022-03-30 19:35:31 +08:00 committed by khuntoriia
parent 6dbda7b565
commit 3dab16b2f6

View File

@ -237,7 +237,9 @@ class Editor extends BaseService {
await this.select(newNode);
this.addModifiedNodeId(newNode.id);
this.pushHistoryState();
if (type !== NodeType.PAGE) {
this.pushHistoryState();
}
return newNode;
}