From 1b64cf4875aa137dedda988ad8d721a11ee3fd26 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期二, 31 五月 2022 13:31:02 +0800 Subject: [PATCH] 应用中心bug修复 --- src/components/wasmPlayer/index.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/wasmPlayer/index.vue b/src/components/wasmPlayer/index.vue index 8ff8d75..44078bd 100644 --- a/src/components/wasmPlayer/index.vue +++ b/src/components/wasmPlayer/index.vue @@ -258,9 +258,10 @@ _this.canvas.style.cursor = "default" }) _this.canvasData.polygon.forEach(function(v, i) { - if (v.location.length === 0) { + if (v.location && v.location.length === 0) { return } + _this.ctx.strokeStyle = "yellow" _this.ctx.beginPath() _this.ctx.moveTo(v.location[0].x / _this.showProportion, v.location[0].y / _this.showProportionY) @@ -510,7 +511,9 @@ width: 100%; height: 100%; } - +#area-canvas { + z-index: 1; +} video { object-fit: fill; width: 100%; -- Gitblit v1.8.0