Ver Fonte

fix 视频遮盖

wenhongquan há 2 anos atrás
pai
commit
9cde45475c
1 ficheiros alterados com 7 adições e 2 exclusões
  1. 7 2
      src/components/MarkerMap/index.tsx

+ 7 - 2
src/components/MarkerMap/index.tsx

@@ -470,10 +470,15 @@ export default defineComponent({
 
              }
              if(type==2){
-              window.indexp = (window.indexp == 1?2:1);
+               window.indexp = (window.indexp == 1 ? 2 : 1);
+               try {
+                 document.getElementById(
+                   'relvideo' + window.indexp
+                 )!.childNodes[0].style.display = 'none';
+               } catch (error) {}
               const meeting = new Meeting();
               if(window.theSocket){
-                meeting.settargetId("relvideo"+window.indexp);
+                meeting.settargetId("relvideo" + window.indexp);
                 meeting.playVideo({
                   type: 'single',
                   deviceId: marker['deviceCode'],