fix pasteNode

This commit is contained in:
zhandouxiaojiji committed 2020-11-26 17:43:04 +08:00
1 parent 00b08988ca
commit 4bdcb06780
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -366,6 +366,7 @@ export default class Editor extends React.Component<EditorProps, EditorState> {
if (!str || str == "") {
return;
}
this.onSelectNode(null);
const data = JSON.parse(str);
if (!curNodeData.children) {
curNodeData.children = [];