From cf991171e699d4e09185419fa45de25d486910d8 Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Mon, 25 Mar 2024 11:47:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .../elevatorMonitoring/eleMonitor.vue | 16 +++---- src/views/sevenLargeScreen/indexL.vue | 2 +- .../erectCrane/gantry-video.vue | 10 ++--- .../gantryCrane/gantry-video.vue | 14 +++--- .../towerCraneMonitoring/monitor.vue | 14 +++--- .../videoManagement/index.vue | 44 ++++++++++--------- 7 files changed, 48 insertions(+), 56 deletions(-) diff --git a/.env.development b/.env.development index 1cb52ab..4367518 100644 --- a/.env.development +++ b/.env.development @@ -13,9 +13,9 @@ NODE_ENV = 'development' # 沈阳合盈线上 # VITE_API_URL = "http://101.43.164.214:45022" # 演示平台 -# VITE_API_URL = 'http://jxj.zhgdyun.com:9809' +VITE_API_URL = 'http://jxj.zhgdyun.com:9809' # 百色七参数线上地址 -VITE_API_URL = 'http://101.43.164.214:11111' +# VITE_API_URL = 'http://101.43.164.214:11111' # 上传 VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url=' diff --git a/src/views/sevenLargeScreen/elevatorMonitoring/eleMonitor.vue b/src/views/sevenLargeScreen/elevatorMonitoring/eleMonitor.vue index bba4c25..3c857da 100644 --- a/src/views/sevenLargeScreen/elevatorMonitoring/eleMonitor.vue +++ b/src/views/sevenLargeScreen/elevatorMonitoring/eleMonitor.vue @@ -107,15 +107,12 @@ onMounted(async () => { }); onBeforeUnmount(() => { - if (oWebControl.value === undefined) { - // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 - oWebControl.JS_HideWnd(); - // 销毁当前播放的视频 - oWebControl.JS_RequestInterface({ funcName: "destroyWnd" }); - // 断开与插件服务连接 - oWebControl.JS_Disconnect(); - } -}); + // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 + oWebControl.JS_HideWnd(); + // 销毁当前播放的视频 + oWebControl.JS_RequestInterface({ funcName: "destroyWnd" }); + // 断开与插件服务连接 + oWebControl.JS_Disconnect(); const initPlugin = () => { oWebControl = new WebControl({ @@ -295,7 +292,6 @@ const previewVideo = (data: string | null) => { }; -