fix generate node id

This commit is contained in:
kangwei 2020-07-14 15:43:19 +08:00
parent 8bd2dcb324
commit 01712f5e73
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ export class DocumentModel {
} }
let node: Node | null = null; let node: Node | null = null;
if (!this.inited) { if (this.inited) {
schema.id = null; schema.id = null;
} }
if (schema.id) { if (schema.id) {

View File

@ -760,7 +760,7 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
if (addon) { if (addon) {
return addon.exportData(); return addon.exportData();
} }
return this.getExtraProp(key)?.value; return this.getExtraProp(key)?.getValue();
} }
/** /**
* @deprecated * @deprecated