mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-20 12:49:19 +08:00
fix(editor): 新增页面不用添加历史记录
This commit is contained in:
parent
6dbda7b565
commit
3dab16b2f6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user