From 764456edf0b72fd40fd64f79e59949a63a636005 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 22 九月 2021 17:15:30 +0800
Subject: [PATCH] 添加h265播放器
---
src/components/canvas/index.vue | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/components/canvas/index.vue b/src/components/canvas/index.vue
index a7dae5a..7e4e217 100644
--- a/src/components/canvas/index.vue
+++ b/src/components/canvas/index.vue
@@ -102,11 +102,17 @@
computed: {
canvasBg() {
if (this.snapshot_url) {
- if (this.sourceType == 2) {
- return `${this.snapshot_url}`
- } else {
- return `/httpImage/${this.snapshot_url}`
+ // 鏁版嵁鏍堣嚜鍔ㄤ笂浼犲鐞�
+ if (this.snapshot_url.indexOf("/opt/vasystem") == 0) {
+ return this.snapshot_url.replace("/opt/vasystem", "");
}
+
+ if (this.sourceType == 2) {
+ return `${this.snapshot_url}`;
+ } else {
+ return `/httpImage/${this.snapshot_url}`;
+ }
+
} else {
return this.blackImg;
}
@@ -197,7 +203,7 @@
this.$nextTick(() => {
// this.$refs.bigCanvas.delCursor = {}
})
-
+
},
cancelFunc() {
this.visible = false;
--
Gitblit v1.8.0