diff --git a/src/app/pages/plan/plan.component.ts b/src/app/pages/plan/plan.component.ts index 0434fb4..754222a 100644 --- a/src/app/pages/plan/plan.component.ts +++ b/src/app/pages/plan/plan.component.ts @@ -154,6 +154,9 @@ export class PlanComponent implements OnInit { } ngOnDestroy(): void { //组件销毁前 销毁canvas + if (this.selectFence === 7) { //初始化 应急预案模块 + this.initializePlan() + } this.game.pauseRender(); this.game = null; }