From ed324c77a40aef81cc1e5c36e340b3a0feb3be91 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Thu, 16 Dec 2021 13:45:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8A=E6=94=BE=E5=BA=94=E6=80=A5=E9=A2=84?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/plan/plan.component.ts | 3 +++ 1 file changed, 3 insertions(+) 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; }