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

This commit is contained in:
roymondchen 2022-03-30 19:35:31 +08:00
parent a24b57a129
commit 464d713b99

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;
}