mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-18 12:40:13 +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);
|
await this.select(newNode);
|
||||||
|
|
||||||
this.addModifiedNodeId(newNode.id);
|
this.addModifiedNodeId(newNode.id);
|
||||||
this.pushHistoryState();
|
if (type !== NodeType.PAGE) {
|
||||||
|
this.pushHistoryState();
|
||||||
|
}
|
||||||
|
|
||||||
return newNode;
|
return newNode;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user