From afe81c13ea8567efe83e7c73ec72c4b2aea8ed63 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 24 五月 2022 19:19:56 +0800
Subject: [PATCH] 修复wasmplayer区域显示问题
---
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