From 25707be61881f3adc45a1efc26c487eeffddab10 Mon Sep 17 00:00:00 2001 From: chenjiping <chengv_1989@163.com> Date: Mon, 25 Jan 2021 10:21:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E8=83=8C=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/play/play.component.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/play/play.component.ts b/src/app/play/play.component.ts index 0b4506d..bcc48ad 100644 --- a/src/app/play/play.component.ts +++ b/src/app/play/play.component.ts @@ -605,6 +605,8 @@ export class PlayComponent implements OnInit, OnDestroy { initView() { + this.initBg(); + this.initTitle(); this.initBottomPart(); @@ -614,6 +616,12 @@ export class PlayComponent implements OnInit, OnDestroy { this.initExercises(); } + initBg(){ + const bg = new ShapeRect(); + bg.fillColor = "#f0f5f8"; + bg.setSize(this.canvasWidth, this.canvasHeight); + this.renderArr.push(bg); + } initBottomPart() { -- 2.21.0