diff --git a/src/jlgraphic/app/JlGraphicApp.ts b/src/jlgraphic/app/JlGraphicApp.ts index 7b23002..c2b0af8 100644 --- a/src/jlgraphic/app/JlGraphicApp.ts +++ b/src/jlgraphic/app/JlGraphicApp.ts @@ -631,7 +631,7 @@ export class GraphicApp extends EventEmitter { this.addGraphics(g); }); // 加载数据关系 - this.graphicStore.getAllGraphics().forEach((g) => g.loadRealtions()); + this.graphicStore.getAllGraphics().forEach((g) => g.loadRelations()); // 更新id生成器 const max = this.graphicStore diff --git a/src/jlgraphic/core/JlGraphic.ts b/src/jlgraphic/core/JlGraphic.ts index 2d07da3..c4c0d91 100644 --- a/src/jlgraphic/core/JlGraphic.ts +++ b/src/jlgraphic/core/JlGraphic.ts @@ -755,7 +755,7 @@ export abstract class JlGraphic extends Container { /** * 从数据加载恢复图形关系 */ - loadRealtions() {} + loadRelations() {} /** * 获取当前图形的所有图形关系