fix: setSchema 后没有重新渲染问题

This commit is contained in:
liujuping.liujupin 2021-09-24 09:30:53 +08:00
parent a11585a543
commit 8beeca84aa

View File

@ -70,6 +70,7 @@ export class Project {
// FIXME: 这里的行为和 getSchema 并不对等,感觉不太对
const doc = this.documents.find((doc) => doc.active);
doc && doc.import(schema?.componentsTree[0]);
this.simulator?.rerender();
}
/**