shaogen1995 3 년 전
부모
커밋
5514a2c81a
2개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 5 4
      web/src/views/gui/compomemt/hotspot.vue
  2. 4 2
      webM/src/views/gui/component/hotspot.vue

+ 5 - 4
web/src/views/gui/compomemt/hotspot.vue

@@ -43,10 +43,11 @@ export default {
   methods: {
     openHot(e, index) {
       // 停止自动导览
-      window.player.director.stopTour()
-
-      e && e.examine(window.player, true);
-      this.hotInd = index;
+      window.player.director.stopTour();
+      setTimeout(() => {
+        e && e.examine(window.player, true);
+        this.hotInd = index;
+      }, 200);
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 4 - 2
webM/src/views/gui/component/hotspot.vue

@@ -40,8 +40,10 @@ export default {
       // 停止自动导览
       window.player.director.stopTour();
 
-      e && e.examine(window.player, true);
-      this.hotInd = index;
+      setTimeout(() => {
+        e && e.examine(window.player, true);
+        this.hotInd = index;
+      }, 200);
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)