From edef6ae8f59823258ce610c9074d32e698958b51 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 28 七月 2022 15:30:44 +0800 Subject: [PATCH] 本地图片适配 --- src/views/hashrate/CameraManage/CameraInfo/index.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/hashrate/CameraManage/CameraInfo/index.vue b/src/views/hashrate/CameraManage/CameraInfo/index.vue index 76926e1..793881c 100644 --- a/src/views/hashrate/CameraManage/CameraInfo/index.vue +++ b/src/views/hashrate/CameraManage/CameraInfo/index.vue @@ -204,6 +204,7 @@ :rtspUrl="videoItem.rtsp" :isRunning="false" :showArea="false" + :videoUrl="ip" v-if=" videoItem !== '' && videoItem !== undefined && @@ -261,6 +262,7 @@ togglePlay: true, eventAudio: new Audio(), soundPath: "", + ip: "", form: {}, // 璁板綍娣诲姞鐘舵�� isAdd: false, @@ -375,6 +377,8 @@ if (node.type === "4") { getCameraInfo(node.id).then((res) => { if (res.success) { + this.ip = "ws://" + res.data.ip + ":7009/ws"; + if (res.data.resolutions) { let list = res.data.resolutions.map((i) => { let obj = {}; @@ -735,7 +739,7 @@ .connect { margin-bottom: 20px; display: flex; - justify-content: end; + justify-content: flex-end; } .el-button { @@ -862,7 +866,7 @@ .btns { display: flex; - justify-content: end; + justify-content: flex-end; margin-top: 20px; .delBtn { -- Gitblit v1.8.0