wenhongquan 2 년 전
부모
커밋
ab619c3ff3
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/components/MarkerMap/index.tsx
  2. 4 0
      src/layout/BaseLayout/index.tsx

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

@@ -1147,8 +1147,10 @@ export default defineComponent({
 
     onMounted(async () => {
       store.getAllsingleDevice();
+      
       setTimeout(() => {
         store.getAllsingleDevice();
+        store.getAllvideoDevice();
       }, 2000);
 
       window.minemap.util.getJSON(

+ 4 - 0
src/layout/BaseLayout/index.tsx

@@ -156,6 +156,10 @@ export default defineComponent({
 
     // login da hua
     onMounted(async () => {
+      setTimeout(() => {
+        markerstore.getAllsingleDevice();
+        markerstore.getAllvideoDevice();
+      }, 4000);
       const meeting = new Meeting();
       meeting.$Message = ElMessage;
       meeting.openClient(() => {