wenhongquan 2 years ago
parent
commit
ab619c3ff3
2 changed files with 6 additions and 0 deletions
  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(() => {