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) => { }; -