mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-14 18:28:13 +00:00
fix: uniqueid
This commit is contained in:
parent
8cf0010441
commit
8db52f0f58
@ -66,6 +66,7 @@ export class DocumentModel {
|
|||||||
return this.modalNode || this.rootNode;
|
return this.modalNode || this.rootNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private inited = false;
|
||||||
constructor(readonly project: Project, schema?: RootSchema) {
|
constructor(readonly project: Project, schema?: RootSchema) {
|
||||||
/*
|
/*
|
||||||
// TODO
|
// TODO
|
||||||
@ -92,6 +93,7 @@ export class DocumentModel {
|
|||||||
(schema) => this.import(schema as RootSchema, true),
|
(schema) => this.import(schema as RootSchema, true),
|
||||||
);
|
);
|
||||||
this.setupListenActiveNodes();
|
this.setupListenActiveNodes();
|
||||||
|
this.inited = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@obx.val private willPurgeSpace: Node[] = [];
|
@obx.val private willPurgeSpace: Node[] = [];
|
||||||
@ -161,6 +163,9 @@ export class DocumentModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let node: Node | null = null;
|
let node: Node | null = null;
|
||||||
|
if (!this.inited) {
|
||||||
|
schema.id = null;
|
||||||
|
}
|
||||||
if (schema.id) {
|
if (schema.id) {
|
||||||
node = this.getNode(schema.id);
|
node = this.getNode(schema.id);
|
||||||
if (node && node.componentName === schema.componentName) {
|
if (node && node.componentName === schema.componentName) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user