Explorar o código

修改网页标题
登录页区分

彭宇 %!s(int64=2) %!d(string=hai) anos
pai
achega
db7d53b559
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  1. 7 3
      src/views/eventdetailsdialog.vue

+ 7 - 3
src/views/eventdetailsdialog.vue

@@ -2023,9 +2023,13 @@ export default {
       getHaiKangVideoServer({ cameraCode: cameraCode }).then(newResponse => {
         that.cameraTitle = '摄像头-' + newResponse.data.cameraName
         that.initPlugin(newResponse.data.appkey, newResponse.data.loginIp, newResponse.data.secret, newResponse.data.loginPort)
-        setTimeout(function() {
-          that.playhk(newResponse.data.channelCode)
-        }, 5000)
+        that.$nextTick(()=>{
+          console.log(that.oWebControl)
+          setTimeout(function() {
+            console.log(that.oWebControl)
+            that.playhk(newResponse.data.channelCode)
+          }, 5000)
+        })
       })
 
     },