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(