Browse Source

增加飞行返回

zk 1 year ago
parent
commit
1dd7d33330
2 changed files with 12 additions and 6 deletions
  1. 5 3
      src/components/UeVideo.vue
  2. 7 3
      src/views/home/Header.vue

+ 5 - 3
src/components/UeVideo.vue

@@ -30,8 +30,8 @@ export default {
         // serverUrl: 'http://10.1.161.67:8080/',
         // serverUrl: 'http://172.16.58.196:8080/',
         // serverUrl: 'http://172.16.58.198:8080/',
-        serverUrl: 'http://172.16.58.195:8080/',
-        // serverUrl: 'http://127.0.0.1:8080/',
+        // serverUrl: 'http://172.16.58.195:8080/',
+        serverUrl: 'http://127.0.0.1:8080/',
         qualityControl: true,
         inputOptions: {
           controlScheme: 1, // 鼠标:0是锁定,1是滑过
@@ -91,7 +91,9 @@ export default {
             case 'history_run':
               bus.emit('ueRec_HistoryRun',dataObj.data)
               break
-
+            case 'fly_Action':
+              bus.emit('fly_Action',dataObj.data)
+              break
           }
 
         } else {

+ 7 - 3
src/views/home/Header.vue

@@ -111,9 +111,13 @@ export default {
           break
         case 3:
           ueCallFlyToSP()
-          setTimeout(() => {
-            ueCallOpenVideoFusion()
-          }, 1000);
+          bus.on('fly_Action', (data) => {
+            if(data.isOk=='true') {
+              setTimeout(() => {
+                ueCallOpenVideoFusion()
+              }, 1000);
+            }
+          })
           break
         case 4:
           bus.emit('toggle_sxdx', true)