Update use status api with mount event

This commit is contained in:
2022-03-07 10:43:23 +08:00
parent 779076012f
commit 9bc8ddf061
6 changed files with 93 additions and 57 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class SimulatorWeb extends Component {
// TODO: 这里要读取存档
this.status = new Status();
this.status.renderer = new ClassicRenderer({ className: "canvas" }).onLoad();
this.status.model.bindRenderer(this.status.renderer);
this.status.bindRenderer(this.status.renderer);
this.status.setting = this.setting;
// 测试代码