From 25efab8b67ae37a03c4e21f993347fc728c34e6c Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 9 Jan 2025 16:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=88=99=E5=8C=B9=E9=85=8D=E6=9D=A5?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E5=9F=9F=E5=90=8D=EF=BC=8C=E4=B8=80=E5=8A=B3?= =?UTF-8?q?=E6=B0=B8=E9=80=B8=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Videosurveillance/cpts/videoDialog.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/dataBoard/IoTPerception/Videosurveillance/cpts/videoDialog.vue b/src/views/dataBoard/IoTPerception/Videosurveillance/cpts/videoDialog.vue index f4e825656..03c8f592d 100644 --- a/src/views/dataBoard/IoTPerception/Videosurveillance/cpts/videoDialog.vue +++ b/src/views/dataBoard/IoTPerception/Videosurveillance/cpts/videoDialog.vue @@ -149,15 +149,15 @@ export default { }, methods: { - async getVideoUrl(){ - let {data,code} = await requestPost('/actual/base/videoMonitoring/getVideoUrl',{monitorCode:this.monitorCode}) - if(code === 0){ - this.url = data.replace('https://111.34.21.222:12443/',`${window.SITE_CONFIG['liveURL']}`) - this.play() - } - }, + async getVideoUrl() { + let { data, code } = await requestPost('/actual/base/videoMonitoring/getVideoUrl', { monitorCode: this.monitorCode }); + if (code === 0) { + const serverRegex = /^http:\/\/[^\/]+/; + this.url = data.replace(serverRegex, `${window.SITE_CONFIG['liveURL']}`); + this.play(); + } + }, create(options) { - console.log('seeee'); options = options || {}; this.jessibuca = new window.Jessibuca( Object.assign(