diff --git a/public/config/config.json b/public/config/config.json index d60ba89..1053b40 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,9 +1,9 @@ { "title":"感知数据汇聚平台", - "baseUrl": "http://111.198.10.15:11643", + "baseUrl": "http://10.30.7.26:20705", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", "JsKey": "40849e82b4e33f5255b17372520c954d", - "xuntengMap": "http://111.198.10.15:11643/getMap?mapPath=http://172.17.206.70:20198/_allLayer/tile", + "xuntengMap": "http://10.30.7.26:20705/getMap?mapPath=http://172.17.206.70:20198/_allLayer/tile", "areaCode": { "01": "东城", "02": "西城", diff --git a/public/config/config.json b/public/config/config.json index d60ba89..1053b40 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,9 +1,9 @@ { "title":"感知数据汇聚平台", - "baseUrl": "http://111.198.10.15:11643", + "baseUrl": "http://10.30.7.26:20705", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", "JsKey": "40849e82b4e33f5255b17372520c954d", - "xuntengMap": "http://111.198.10.15:11643/getMap?mapPath=http://172.17.206.70:20198/_allLayer/tile", + "xuntengMap": "http://10.30.7.26:20705/getMap?mapPath=http://172.17.206.70:20198/_allLayer/tile", "areaCode": { "01": "东城", "02": "西城", diff --git a/src/components/HKplayer/index.vue b/src/components/HKplayer/index.vue index 07a80bd..d5e2fd8 100644 --- a/src/components/HKplayer/index.vue +++ b/src/components/HKplayer/index.vue @@ -90,8 +90,14 @@ const id = props.playId const video = document.getElementById(id) as HTMLDivElement // 创建图片 + if (document.getElementById("img-hk-custom")) { + document.querySelectorAll('[id="img-hk-custom"]').forEach(element => { + element.remove(); + }) + } const img = document.createElement("img") img.src = loadingImg + img.id = 'img-hk-custom' // 将图片放在视频之上 const width = video.style.width const height = video.style.height @@ -136,12 +142,18 @@ type: 'real', url: data.url, } + if (document.getElementById("img")) { + document.querySelectorAll('[id="img"]').forEach(element => { + element.remove(); + }) + } // 添加loading图片 const id = props.playId const video = document.getElementById(id) as HTMLDivElement // 创建图片 const img = document.createElement("img") img.src = loadingImg + img.id = 'img-hk-custom' error.value = false // 将图片放在视频之上 const width = video.style.width @@ -158,7 +170,10 @@ () => { console.log('playbackStart success') // 播放成功删除图片 - img.remove() + // img.remove() + document.querySelectorAll('[id="img-hk-custom"]').forEach(element => { + element.remove(); + }) error.value = false ElMessage.warning('播放十秒自动关闭') }, @@ -210,7 +225,7 @@